priority

#1040948
  • Resolved Глеб Кочуров
    Rank Math free

    Hello,

    I’m using the Rank Math plugin for my WordPress website and would like to change the <priority> value for all posts in the sitemap from the default (0.10) to 0.80.

    I’ve tried using the following hook:
    add_filter(‘rank_math/sitemap/priority’, function($priority, $object_type, $object_id) {
    if ($object_type === ‘post’) {
    return 0.8;
    }
    return $priority;
    }, 10, 3);
    However, the priority value in the sitemap did not change. I also cleared all caches (Rank Math cache, site cache, browser cache), but it still shows 0.10.

    Could you please advise the correct method or hook to use in order to modify the priority for posts in the sitemap?

    Thank you in advance for your help!

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with changing the priority value in your sitemap using Rank Math. It seems like you are on the right track with using a filter, but the priority values in the sitemap are not customizable through that specific hook as you might expect.

    Currently, Rank Math does not support changing the ` value directly through a filter. The default behavior is to set it to0.10` for all posts, and this is in line with Google’s recommendations, as they have deprecated the use of priority values in sitemaps.

    If you still want to customize your sitemap further, you might consider reaching out to our support team for more advanced assistance or checking if there are any updates or changes in future versions of Rank Math that might allow for this customization.

    Thank you for raising this concern! If you have any more questions or need further assistance, please feel free to reply to this ticket, and a human agent will take over and assist you further.

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

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