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

    (@geminilabs)

    Please explain in more detail what you are trying to achieve.

    Thread Starter diabolosdark

    (@diabolosdark)

    I need TablePress sort rows by rating, as in the example from the link above.

    Plugin Author Gemini Labs

    (@geminilabs)

    Yes, but what are you sorting?

    1. Pages which have assigned reviews?
    2. Users which have assigned reviews?
    Thread Starter diabolosdark

    (@diabolosdark)

    I need sorting by the final row rating

    Plugin Author Gemini Labs

    (@geminilabs)

    It could be something as simple as this:

    Show the ranking number of the page:

    add_shortcode('site_reviews_rank', function () {
        return get_post_meta(get_the_ID(), '_glsr_ranking', true) || 0;
    });

    Usage: [site_reviews_rank]

    Show the average rating number of the page:

    add_shortcode('site_reviews_average', function () {
        return get_post_meta(get_the_ID(), '_glsr_average', true) || 0;
    });

    Usage: [site_reviews_average]

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

The topic ‘PHP ectension’ is closed to new replies.