• Resolved Martin1982

    (@martin1982)


    Hi,

    Is there any way to do not create sitemaps automatically for all Woocommerce product attributes? Every time i create new product attribute taxonomy it creates a sitemap for particular attribute. Is there any way to avoid it?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can exclude the product attributes directly from the Yoast SEO → XML Sitemaps → Taxonomies (tab).

    Thread Starter Martin1982

    (@martin1982)

    Every time new attribute taxonomy is created, it creates a new sitemap with a default value IN SITEMAP. This indexes a bunch of URL’s which I don’t want to keep indexed. Is there any way to change the default value to NOT IN SITEMAPS for all product attributes?

    @martin1982 Unfortunately, there is no such option to exclude the product attributes from the sitemap automatically. You’ll need to manually exclude them from the sitemaps option.

    Hi @martin1982

    There are couple options:

    1. I think that Yoast WooCommerce SEO plugin supports something similar.
    2. Make PHP code. You can use filters wpseo_sitemap_exclude_taxonomy and wpseo_robots (you need to set noindex, it doesn’t make sense to only exclude them). Maybe I can write some example.
    3. Very simple solution (I use it because I don’t need product archives for them): Uncheck ‘Enable Archives’ when you are creating new product attribute. I’m not sure that works for you, but I use them only as filters and it’s perfect solution for me.

    Sasa

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Do not include taxonomy sitemap automatically’ is closed to new replies.