Noindex Paginated Single Pages issue

#510805
Viewing 5 replies - 1 through 5 (of 5 total)
  • CAN
    Rank Math free

    Anybody can help me please?

    Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with robots meta settings for your “secteur” custom taxonomy pages.

    In the case of your example URL, You can go to your WordPress dashboard > Rank Math > Titles & Meta > Secteur then toggle on “Secteur Archives Robots Meta”, select “noindex” and click “save changes” at the bottom of the page. I have gone ahead and done this for you.
    screenshot:

    Hope that helps. Please let us know if you have questions.

    CAN
    Rank Math free

    But i dont want to do nofollow my taxonomy ,i want to do nofollow taxonomies numbered pages

    CAN
    Rank Math free

    Noindex Paginated Single Pages
    This function not working

    Nigel
    Rank Math business

    Hello,

    Tried the following code snippet; however, your taxonomy archive seems to be using different pagination rules. Please check how the Secteurs taxonomy was setup to get the correct pagination:

    
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	global $wp_query;
    	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    	if( is_tax("secteur") && ($paged > 1)) 
    	{ 
    		$robots["index"] = 'noindex';
        	$robots["follow"] = 'nofollow';
    	}
    	return $robots;
    });
    

    The code snippet is present in your theme functions.php file.

    Hope that helps. Please let us know if you have questions.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Noindex Paginated Single Pages issue’ is closed to new replies.