Anybody can help me please?
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.
But i dont want to do nofollow my taxonomy ,i want to do nofollow taxonomies numbered pages
Noindex Paginated Single Pages
This function not working
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.