Currently you can only control priority by filtering bwp_gxs_priority_score. Something like below in your theme’s functions.php:
add_filter('bwp_gxs_priority_score', 'my_gxs_score');
function my_gxs_score($current_score, $post, $frequency)
{
// your calculation logic here
}
Hope that helps.
Thread Starter
Susa38
(@susa38)
Could you say to me what mean…
// your calculation logic here
one example please
thanks a lot
You could use something like:
add_filter('bwp_gxs_priority_score', 'my_gxs_score');
function my_gxs_score($current_score, $post, $frequency)
{
echo '<pre>' . var_export($post, 1) . '</pre>';
echo '<pre>' . var_export($frequency, 1) . '</pre>';
}
to print all the data you can use to calculate your desired score. For example you can calculate the priority based on a page’s last updated time and the number of comments on that page, or simply its ID (the lower the higher priority it has).
It much depends on what you meant by most important.