Conditional noindex tags

#327850
  • Resolved Alexander Eisendle
    Rank Math free

    Hi,

    is there any possibility to to something like this:

    I have a custom post type “books” with the taxonomies “keyword” and “topic”. I imported around 40.000 books with wp all import from a csv file.

    Now i have many taxnonomy pages with only 1-2 books. This URLs i want to set to noindex,follow.

    So for example: “All taxnomies with less than 5 entries (books) should be set to noindex, follow”

    Is there a way to do this?

    Thank you,
    Alex

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    You can modify and use the following filter in your theme’s functions.php file to set the conditions to nofollow the taxonomies: https://rankmath.com/kb/filters-hooks-api-developer/#change-robots-meta

    Hope this helps. Let us know if you need any other assistance.

    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 ‘Conditional noindex tags’ is closed to new replies.