• Resolved ethan11698

    (@ethan11698)


    Is there a way to just display the top 5 reviewed posts on the site? For instance, I am doing an episode review site and each episode is a blog post. I would like to display the top 5 reviewed episodes and their thumbnail in another part of the page.

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

    (@geminilabs)

    If you are assigning your reviews to posts on your site, then Site Reviews will save a _glsr_ranking meta_key which contains the Bayesian ranking of the post. This can be used when sorting your posts.

    Here is an example of sorting by rank with WP_Query: https://pastebin.com/HCSsq4TP

    If you are looking for a solution that does not require creating your own custom WP_Query, you could use the Posts in Sidebar. The setting to use are found here: https://www.ads-software.com/support/topic/order-by-ranking-reviews/#post-11239677

    • This reply was modified 4 years, 7 months ago by Gemini Labs.
    Thread Starter ethan11698

    (@ethan11698)

    Using posts in sidebar I have successfully got the top reviews to show which is great! Is there any way to show the rating also or even the stars?

    Plugin Author Gemini Labs

    (@geminilabs)

    No…the Posts in Sidebar plugin is for showing the posts that have the most reviews assigned to them (the highest ranking posts).

    To show the reviews, you will need to use the shortcodes.

    For example, to show the 5 most recent 5-star reviews:

    [site_reviews rating=5 display=5]

    Thread Starter ethan11698

    (@ethan11698)

    I mean the overall rating in the excerpt for each post inside posts in sidebar? So the top 3 display now in posts in sidebar with their thumbnail and excerpt but not rating is it possible to display the rating of the top 3 in posts in sidebar?

    Plugin Author Gemini Labs

    (@geminilabs)

    You will need to contact the Posts in Sidebar support team ( @aldolat ) to find out if they provide any filter hooks.

    Once you know this, you can use do_shortcode inside the filter hook to add the summary.

    For example:

    echo do_shortcode('[site_reviews_summary assigned_to=post_id hide=summary,bars]');
    
    
    • This reply was modified 4 years, 6 months ago by Gemini Labs.
    • This reply was modified 4 years, 6 months ago by Gemini Labs.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Top Reviews Help’ is closed to new replies.