Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
To set the shopping page to noindex
and also remove it from the sitemap, you can add both of these filters on your website:
//Set as noindex
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if( is_shop() ) {
$robots['index'] = 'noindex';
$robots['follow'] = 'nofollow';
}
return $robots;
});
// Remove from sitemap
add_filter( 'rank_math/sitemap/post_type_archive_link', function( $archive_url, $post_type ){
if($post_type == 'product') {
return false;
}
return $archive_url;
}, 10, 2 );
And here’s a guide to adding the code to the website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Regarding the paginated, unfortunately, it is not possible to include them in the sitemap nor it is necessary to do so.
The paginated pages are discovered by the next and prev tag that is added to all the paginated pages, and as long as the first page is available in the sitemap, all the others will be discovered.
Hope that helps.
Than kyou.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.