can i do a bulk index to Already published post and pages

  • When I was starting my site, I left the no index for empty pages option picked, and now, after I had changed the settings it has not reflected on my search console, I have about 150 pages of excluded pages. is there any way I can bulk index all these excluded pages and post so i don’t have to do it one by one

    • This topic was modified 6 days, 14 hours ago by Seyi Ishola.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch and I am extremely sorry about the trouble this might have caused.

    I am sorry but doesn’t have a feature to bulk update the index/noindex option. You may have to change this in your individual posts in WP > Posts > Your Post > Advanced Tab in Rank Math.

    Individual Post Advanced Tab

    A work around to this would be to define all the posts in an array or a category then use the following filter which will change the robots meta in the front end making the posts specified to have an indexable robots tag.

     * Allows filtering of the robots meta data.
     * @param array $robots The meta robots directives.
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
         global $post;
            $robots['index'] = "noindex";
    	return $robots;

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.