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 1 month, 1 week 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.
    Screenshot:

    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.

    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.

Viewing 1 replies (of 1 total)

The ticket ‘can i do a bulk index to Already published post and pages’ is closed to new replies.