Hello,
I apologize for the inconvenience you’re facing. To achieve this, you can use Rank Math’s built-in functionality to set No Index for specific posts or pages. You can also use the code snippet provided in our knowledge base to set noindex to specific categories.
To set No Index for all posts of a specific post type, you can configure that under WordPress Dashboard → Rank Math SEO → Titles & Meta → Posts (or any other post type). You can then scroll down the page to find the Post Robots Meta option and choose the No Index option.
If you want to set No Index for specific categories, you can use the code snippet provided in our knowledge base. You can find the detailed instructions and code snippet in the following article: How to Noindex All Posts in a Category » Rank Math
Regarding the Google Search Console errors, if you’re seeing “No-index” settings causing issues, you can export the modified rules in your robots.txt by heading over to Rank Math SEO → General Settings → Edit robots.txt inside your WordPress admin area. You can then paste the modified rules in the code editor and click the Save Changes button to reflect the changes.
For more detailed instructions, you can refer to the following articles:
I hope this helps! If you have any further questions or need additional assistance, please feel free to ask.
Sources:
How to Noindex URLs With Rank Math » Rank Math
How to NoIndex All Posts in a Category » Rank Math
How to Fix the “Indexed, though blocked by robots.txt” Error » Rank Math
How to Fix ‘Blocked by robots.txt’ Error in Google Search Console » Rank Math
Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank Math
Hello,
Thank you for contacting Rank Math support.
You cannot use robots.txt rules to disallow indexing in this way. But you can use Rank Math filters to set the post/pages you want as index
or noindex
.
For example, if you want posts with the ‘store’ taxonomy to be set to index, you can use this code:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if ( is_singular( 'post' ) && has_term( 'store', 'taxonomy_name' ) ) {
$robots['index'] = true;
}
return $robots;
});
You can add the code to your site using any of the methods here.
We hope this helps you resolve the issue. Don’t hesitate to contact us again with any other questions or concerns regarding Rank Math. We are always happy to help.
Thank you for choosing Rank Math!
I want Google not to crawl my No-index post. Is it possible to stop crawling Google for these posts so that It will not show errors in the Search Console Page section? As I sent you a screenshot before.
Hello,
When you set a page as noindex
, Google will still crawl those pages, but it will not index them. If you do not want Google to crawl those pages at all, you’d have to include them in your DISALLOW rule in your robots.txt file.
Unfortunately, the robot.txt file will only accept straightforward rules and wildcards, i.e.
Disallow: /store/page/
OR
Disallow: /store/*
The first rule will disallow the crawling of the /store/page
, while the second rule will disallow the crawling of any subpage of /store/
, for example: /store/page1
, /store/page2
, /store/page3
, etc. If this is what you want to achieve, then you can use the second rule.
We hope this helps you resolve the issue. Don’t hesitate to contact us again with any other questions or concerns regarding Rank Math. We are always happy to help.
Thank you for choosing Rank Math!
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.