Viewing 1 replies (of 1 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    The only thing I could find with the code that I use to handle the rotation, was being able to keep the plugin from wrapping around back to the beginning. You can add this code into your functions.php file found in your theme folder:

    function hg_testimonial_rotator_data_attributes( $default, $template_name, $id )
    {
    	return " data-cycletwo-allow-wrap='false' ";
    }
    add_filter('testimonial_rotator_data_attributes', 'hg_testimonial_rotator_data_attributes', 10, 3 );

    There are more checks you can do with the attributes of the php function. I’ve posted them here: https://gist.github.com/halgatewood/25928d84f8a07006c06c
    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Stopping the loop after a slide number’ is closed to new replies.