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 your category pages to noindex without using a filter, you can use the Bulk Actions feature which is available only with Rank Math PRO.
Also, you can edit them using a CSV file using Rank Math PRO:
https://rankmath.com/kb/editing-seo-meta-at-scale/#csv
I hope that helps.
Thank you.
Users constantly add new Ingredients on our site, so it would be really unproductive to have our team constantly update a CSV or bulk unindex them everyday.
Dropped Yoast for RankMath, but I am honestly very disappointed that you don’t have such a simple, very important feature.
Guess it’s back to Yoast then.
Thank you for your time.
Hello,
Currently, we do not have the feature to noindex all the posts within a category and the solution is the code present in the guide you shared.
With that being said, there are existing feature requests, so I’ve added your vote to our internal suggestions lists. If this is something that we’re able to introduce in our future updates, we’ll ensure to let you know.
Hope this helps.
Thank you.
We’ve also tried both options in this post, but none worked.
Both codes only affect the “ingredients” page itself, but none of it’s children pages – which are the real problem.
In the example above, “carne de miel” is one of the ingredients and if you look at the page code, it still has the “index”.
Is there really no code available which would no-index all pages which have /ingrediente/ in the url?
Try this code to noindex all pages containing “/ingrediente/” in the URL
/**
* Filter to set noindex to all pages with "/ingrediente/' in the URL.
*/
add_filter( 'rank_math/frontend/robots', function ( $robots ) {
$current_url="//".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if ( strpos($current_url, '/ingrediente/') !== false) ) {
unset( $robots['index'] );
$robots['noindex'] = 'noindex';
}
return $robots;
} );
Hello, Amar.
Still only affects the “ingredients” page itself, but none of it’s children pages, as you can see yourself when looking at these pages.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
We added a custom filter at the bottom of your functions.php file that sets the entire taxonomy to be noindex.
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Thanks a lot, Miguel! You guys were awesome. I hope you will be introducing an easy way to do this via RankMath as well, as I think it’s very important and many others would benefit from it.
Hello,
I am glad that this resolves your issue.
We are constantly improving our plugin and we appreciate your feedback. We have noted your input and thank you so much for sharing it.
Please do not hesitate to let us know if you need our assistance with anything else.