Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    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)

    thanks a lot. I will try

    Thread Starter Susa38

    (@susa38)

    Could you say to me what mean…
    // your calculation logic here

    one example please

    thanks a lot

    Plugin Author Khang Minh

    (@oddoneout)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘change priority for pages’ is closed to new replies.