• Resolved bassemM

    (@bassemm)


    Hello,

    First: need to know if the bayesian algorithm can be used to rank pages according to the highest reviews to the lowest and according to the number of reviews assigned to these pages?
    Second I need to know if there is any documentation explaining how to do it.

    Thanks for the great plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    The Bayesian algorithm determines the ranking number of a page which has reviews assigned to it. Bayesian scoring is useful as it provides a more meaningful number to sort by than sorting by the average rating as this image demonstrates:

    Assigned pages have the following meta_keys saved to them which can be used to sort the pages in a WordPress query loop:

    • _glsr_average — The average rating of the page.
    • _glsr_ranking — The calculated ranking of the page.
    • _glsr_reviews — The number of reviews assigned to the page.

    Any pages which do not have assigned reviews will not have these meta_keys!

    The “Site Reviews > Help & Support > FAQ” page explains how these meta_keys can be used to sort your pages:

    Thread Starter bassemM

    (@bassemm)

    Thank you so much for replying that fast.
    Two question here,
    1- How to assign the bayesian ranking algorithm to an specific page, is t by using the Page_ID as usual?

    2-After embedding The code into the function.php, is there a way to display the ranking using elementor and specify the displayed ranking to a page by ID? as I assume it will be done, not sure of course.

    Thanks alot.

    Plugin Author Gemini Labs

    (@geminilabs)

    1 – That meta_value is updated automatically whenever a review is assigned to the page.

    2 – A ranking number looks something like this: 3.7857142857143. You would probably want to display the average rating to the user with the Elementor Rating Summary widget rather than displaying an arbitrary ranking number.

    Thread Starter bassemM

    (@bassemm)

    I am already displaying the average rating summery for the users, what I need is to rank and display more accurately.
    OK, another question, is there is a way to get the values of the bayesian meta value at the back end, and I will try to figure out some way to display it in the front end. in other words, where to see the meta value in the back end?

    Plugin Author Gemini Labs

    (@geminilabs)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using the bayesian algorithm with in WP_Query’ is closed to new replies.