• Resolved VegasWill

    (@vegaswill)


    Is there a way to pull random reviews onto the homepage? Whether it’s in this version or a paid addon.

    Thank you
    Will

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

    (@geminilabs)

    Random reviews are great in theory, but since PHP is a server-side language (not client-side like javascript) any caching you do on your website to speed it up will make the randomness no longer work.

    This is why Site Reviews does not provide a “random” option.

    If you want to do this anyway, here is a custom shortcode snippet that may help you get started: https://pastebin.com/naUae8zB

    A more advanced solution would be to write some javascript which uses AJAX to get the reviews on page load, using the glsr_get_reviews() function in the PHP callback function to order reviews randomly (using the orderby option in the function).

    Thread Starter VegasWill

    (@vegaswill)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pull Random Reviews’ is closed to new replies.