• Resolved pfundty

    (@pfundty)


    Hi Guys,

    Firstly let me acknowledge that I am running WP v 4.2.5 and not the latest. As well as Yoast SEO v 2.3.4.

    Previously using Yoast SEO I was able to allocate sitemap preferences for each page in the page editor including the options to include or not include the sitemap and the priority.

    After an update, not sure which one, I no longer have access to this feature. Was it removed?

    Also when using Google XML Sitemaps and Yoast SEO (with sitemap option disabled) is the indexing function of Yoast SEO affected? As far as I can tell it is not but would like to check.

    Cheers,

    Pfundty

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 3 replies - 1 through 3 (of 3 total)
  • This was indeed removed for individual posts and pages. Instead you would need to set a filter.

    You can refer to the following for a lead on creating this filter: https://kb.yoast.com/article/216-can-i-change-the-sitemap-priority

    Hi, Nile..
    I already read the following link you give to change the priority and it works, but i also want to change the priority of product_category and tag. I try adding category in the end like this code below but it doesn’t work,

    add_filter( ‘wpseo_xml_sitemap_post_priority’, ‘my_custom_post_xml_priority’, 10, 4 );

    function my_custom_post_xml_priority( $return, $type, $post) {
    if ($type == ‘page’)
    $return = 1.0;
    else if ($type == ‘post’)
    $return = 0.6;
    else if ($type == ‘product’)
    $return = 0.6;
    else if ($type == ‘category’)
    $return = 0.9;
    return $return;
    }

    maybe, if you can help me with this…

    Hello @pfundty,

    Also when using Google XML Sitemaps and Yoast SEO (with sitemap option disabled) is the indexing function of Yoast SEO affected? As far as I can tell it is not but would like to check.

    You are right that it wouldn’t affect the indexing of Yoast SEO.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sitemap Priority’ is closed to new replies.