• I have added the custom timeout function described on the plugin developers page:

    function testimonial_rotator_widget_set_timeout( $args ) { return 10000; }
    add_filter( 'testimonial_rotator_widget_timeout', 'testimonial_rotator_widget_set_timeout' );

    …and indeed this is changing the rotation timeout for when I use it as a widget in a sidebar.

    The only problem is that I am also using the plugin called directly in a template file using php:

    <?php echo testimonial_rotator( array( 'id' => 301500, 'shuffle' => 1, 'limit' => 10) );?>

    In this instance, the rotator is not using the new function (or even default as I have even changed the timeout directly on the plugin php file.

    I would love to slow it down a bit as I have some long testimonials for people to read.

    Cheers.

    https://ww.wp.xz.cn/plugins/testimonial-rotator/

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

    (@halgatewood)

    Hi Zach.

    I’m working on a new version that will allow you to specify the timeout in the admin when you create the rotator. This will fix your problem. Should launch this week!

    Hal

    Plugin Author Hal Gatewood

    (@halgatewood)

    I new version 2.0+ has these settings all in the backend when you create/edit the rotator. Simply pass the 'id' => 301500 in your PHP and it will grab the settings from the database.

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

The topic ‘Timeout not working for non-widget instance’ is closed to new replies.