• Resolved zo

    (@zotezo)


    Hi,
    Each attribute in Yoast gets its own sitemap.When any attribute created then By default one sitemap has been created with that name.
    Can we restrict anyway so that after creations of any attributes will not create any site map in yoast?

    I have seen this code-
    https://yoast.com/help/how-to-customize-the-sitemap-index/#other

    /* Exclude One Taxonomy From Yoast SEO Sitemap */
    function sitemap_exclude_taxonomy( $value, $taxonomy ) {
    if ( $taxonomy == 'taxonomy_slug' ) return true;
    }
    add_filter( 'wpseo_sitemap_exclude_taxonomy', 'sitemap_exclude_taxonomy', 10, 2 );

    I have added one “test”.I have added the above code.
    But still https://dev1.zotezo.com/in/pa_pack-of-sitemap.xml is showing.
    What is the actual code?
    Alternatively is it possible?
    “Show Product Test in search results?” The default option is “yes”, is it possible to make it “no” as the default option for attributes. if it is “no” then attribute will not appear in the sitemap. If we require any attribute in the sitemap, then we will do it manually by changing the option to “yes”
    Thanks

Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Sitemap has been created with the creation of Attribute’ is closed to new replies.