Hello @mosterojei
We will add filter for Priority and Frequency within a few hours, and let you know about these changes 🙂
Also, we will try to add Post Meta fields in order to set Custom Priority and Frequency for Pages, Posts, and Custom Posts in next updates.
Best regards
Thanks a filter would be a great help for now just to have a programmatic approach to specific pages priority, please let me know once it is done.
We are planning to go live this day. Hopefully it will be resolve today.
Already done 🙂
We have added below filters with 1.7.2 version:
- sitemap_post_priority
- sitemap_post_frequency
- sitemap_term_priority
- sitemap_term_frequency
Here is an example for you:
add_filter( 'sitemap_post_priority', 'my_sitemap_post_priority', 10, 2 );
function my_sitemap_post_priority( $priority, $post ) {
if ( $post->ID === 1 ) {
$priority = 9; // priority from 0 to 10
}
return $priority;
}
Please let us know if you need anything else.
Best regards
That worked thanks a lot. 🙂
We are happy to help you 🙂