Support » Plugin: Testimonial Rotator » randomiser not refreshing each page load

  • Hi,

    In the rotator settings, i have ticked the box to randomise the testimonials. But when i check this on the page, it creates 1 random order, but keeps to that order every time and doesnt randomise or shuffle the testimonials upon each page refresh, that order is now set.

    How do i make it so that the testimonials have a random order and shuffle continuously on every page load?


    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @halgatewood

    wondering if you can suggest anything to fix this please?

    thank you

    Plugin Author Hal Gatewood


    Perhaps you have some caching or something going on. Here is a way to hopefully bypass any caching. Add this filter to your functions.php in your theme:

    function hg_testimonial_rotator_randomize( $current, $template_name, $rotator_id )
      return ' data-cycletwo-random="true" ';
    add_filter( 'testimonial_rotator_data_attributes' , 'hg_testimonial_rotator_randomize', 10, 3 );

    Thanks Hal,

    I have tried that but it didn’t work. It isnt a caching issue because every time i test it i make sure it is cleared beforehand.

    The problem is that the order of the reviews appears to be a fixed random order, and it doesnt keep randomising on every page load.

    What else do you suggest?


    Is there an html code snippet or something that i can add that forces a randomiser or shuffle on page refresh?


    @halgatewood is there anything you can suggest to help sort this issue please? thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘randomiser not refreshing each page load’ is closed to new replies.