Пример кода по сбору ID страниц сайта на WordPress из спец.тэгов на странице. Тут ищем тэг article и из него вытягиваем значение ID.
var arr = ["https://some-url/coming-soon.html", "https://some-url/full_copy_main_page.html", "https://some-url/service-cancellation.html", "https://some-url/terms-and-conditions-of-services.html", "https://some-url/truck-brochure.html", "https://some-url/reviews-new-style.html", "https://some-url/autoxloo-new-home-test.html", "https://some-url/video-gallery-test.html", "https://some-url/new-sales-binder.html", "https://some-url/test-reputation-management.html", "https://some-url/autoxloosatour2022.html", "https://some-url/video-gallery-backup.html", "https://some-url/vir-special.html", "https://some-url/products/vir-test-page.html", "https://some-url/test-marketplace.html", "https://some-url/test-auction-customer-reviews.html"]; var a = []; $.each(arr,function(index,value){ $.get( value, function( data ) { var ddd = $(data).find("article").attr("id").replace(/[^0-9]/gi, ''); a.push(ddd); }); }); setTimeout(function(){ console.log( a.join(",") ); }, 5000);