• Hello Support,

    Is it possible to noindex the Glossary categories?

    /glossary
    /glossary-cat

    And that they do not appear in the sitemap of the web either?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi this is something that you see with the plugins that generate the sitemap and also for the noindex with the plugin for seo that are you using.
    As the plugin is following wordpress standards for the post type everything that support custom post type will let you achieve what do you need.

    Thread Starter Luis Méndez Alejo

    (@gnumax)

    Hi Daniele,

    I tried to add this function (with the Glossary category IDs created) to the functions.php but these categories are not excluded from the sitemap

    add_filter( 'taxonomies-category-not_in_sitemap', function () {
      return array( 27450, 27451 );
    } );

    Any idea?

    As I can see from the code you are using yoast seo.
    They are not using anymore this filter as I can see in their docs https://yoast.com/help/how-to-customize-the-sitemap-index/#filter they have filter to disable post types or taxonomies (not the specific category).

    Thread Starter Luis Méndez Alejo

    (@gnumax)

    Hi Daniele,

    The problem I see in the configuration of the plugin is that you force to use category slug and this is indexed and is problematic for SEO.

    https://monosnap.com/file/GWCPxIaTBP1biMQZo1Rymh0x9PW4lE

    There should be an option not to use categories (taxonomies) if it is not necessary.

    Regards

    This is an option to change the slug for SEO reasons but I can understand the issue that you don’t want that those are indexed.

    Yoast filters anyway should block our post type to be added in sitemaps easily.

    Thread Starter Luis Méndez Alejo

    (@gnumax)

    Okay, Daniele,

    I’m going to do some more research and if I find a workable solution to keep the taxonomies in the Glossary from appearing on the sitemap I’ll post it around here for others users.

    Best regards! ヅ

    Closing after 3 weeks of silence.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘NOINDEX Glossary Category’ is closed to new replies.