Title: Widget Options using PHP
Last modified: August 20, 2016

---

# Widget Options using PHP

 *  Resolved [Paul](https://wordpress.org/support/users/armstrong698/)
 * (@armstrong698)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/widget-options-using-php/)
 * Hi
 * Firstly, thanks for such a great plugin. I have used this on various websites
   and is very easy to use but very effective.
 * Is there any chance you could help me to use the widget options (which are so
   easy to use) but within PHP. I have to use PHP because a particular area in the
   theme will not use shortcodes which has forced me to enter: echo testimonialswidget_widget();
   into the index page (which is where the section I need is).
 * At current the area displays and rotates my testimonials, but I would like to
   find out how to add options such as excerpt length, max height and rotation timing.
 * Does the option goes in the brackets of echo testimonialswidget_widget();? or
   after. Please provide syntax as I am utterly useless with PHP.
 * Many thanks
 * [http://wordpress.org/extend/plugins/testimonials-widget/](http://wordpress.org/extend/plugins/testimonials-widget/)

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

 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/widget-options-using-php/#post-3461721)
 * Thank you for the compliment. I’m trying to ensure this is the best testimonials,
   quote, random text, etc. plugin there is. Do let me know what you think I can
   do to keep improving it.
 * See [FAQ 1](http://wordpress.org/extend/plugins/testimonials-widget/faq/).
 *  Thread Starter [Paul](https://wordpress.org/support/users/armstrong698/)
 * (@armstrong698)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/widget-options-using-php/#post-3461786)
 * I used the following PHP code:
 * <?php echo do_shortcode(‘[testimonialswidget_widget char_limit=185 category=”
   testimonials” refresh_interval=6]’); ?>
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/widget-options-using-php/#post-3461791)
 * That’s one way it’ll work. Thank you for sharing.

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

The topic ‘Widget Options using PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/testimonials-widget_c56561.svg)
 * [Testimonials Widget](https://wordpress.org/plugins/testimonials-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/testimonials-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/testimonials-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/testimonials-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/testimonials-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/testimonials-widget/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/widget-options-using-php/#post-3461791)
 * Status: resolved