Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
Since all the posts are marked as noindex, it wouldn’t be ideal to do that for the archives.
With that said, you can forcibly set the robots meta by applying this filter:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(is_archive()){ $robots['index'] = 'index'; }
return $robots;
});
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thanks for the quick response, but this doesn’t seem to work. I added this filter to my functions, but when I set the cpt to noindex, it also sets the archive to noindex.
Hello,
Can you please try this filter:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(is_post_type_archive('post')){
$robots["index"] = 'index';
$robots["follow"] = 'follow';
}
return $robots;
});
Replace post with your CPT.
Let us know how it goes.
We are here to assist you.
Hello,
We are super happy that this resolved your issue.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
Upon further review, this snippet doesn’t seem to be working. For instance, I have this code in my functions file:
//Index Follow reviews archive
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(is_post_type_archive('reviews')){
$robots["index"] = 'index';
$robots["follow"] = 'follow';
}
return $robots;
});
But it’s being overridden if a post is set to INDEX:
https://www.billhowe.com/reviews/carol-bennion/

Is there a way to override these settings and force all CPTs to be NOINDEX?
Hello,
The filter will only work on archive pages, not their individual posts.
You can set the CPT review’s robot meta to noindex under Rank Math > Titles & Meta > Reviews and retain the filter code.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
That doesn’t seem to work. I have the CPT review’s robot meta to noindex under Rank Math > Titles & Meta > Reviews.
But if a post is set to index, that overrides it.
Hello,
If a post is set as Index in the meta box, it will override the robots meta set in the Titles & Meta settings. You can use the following filter to set your CPTs as Noindex:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(get_post_type() == 'reviews'){
$robots["index"] = 'noindex';
$robots["follow"] = 'nofollow';
}
return $robots;
});
Hope this helps. Let us know if you need any other assistance.
Is there a way to batch edit the posts to set them all as noindex?
Hello,
The option to set the posts as Noindex in bulk is available in the PRO version. In the Free version, you will have to do it manually by editing each post or you can use the filter that I have shared.
Hope this helps. Let us know if you need any other assistance.
Thanks.
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.