Title: Timeout not working for non-widget instance
Last modified: August 21, 2016

---

# Timeout not working for non-widget instance

 *  Resolved [Zachary Sequoia](https://wordpress.org/support/users/physhbon/)
 * (@physhbon)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/timeout-not-working-for-non-widget-instance/)
 * 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://wordpress.org/plugins/testimonial-rotator/](https://wordpress.org/plugins/testimonial-rotator/)

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

 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/timeout-not-working-for-non-widget-instance/#post-4834256)
 * 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](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/timeout-not-working-for-non-widget-instance/#post-4834307)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/testimonial-rotator_b07a88.svg)
 * [Testimonial Rotator](https://wordpress.org/plugins/testimonial-rotator/)
 * [Support Threads](https://wordpress.org/support/plugin/testimonial-rotator/)
 * [Active Topics](https://wordpress.org/support/plugin/testimonial-rotator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/testimonial-rotator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/testimonial-rotator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/timeout-not-working-for-non-widget-instance/#post-4834307)
 * Status: resolved