Title: Theme function syntax?
Last modified: August 20, 2016

---

# Theme function syntax?

 *  Resolved [brett2000](https://wordpress.org/support/users/brett2000/)
 * (@brett2000)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-function-syntax/)
 * Hi,
 * Your testimonials plugin looks great, but could we please have an example of 
   the syntax for calling the theme function?
 * You say:
    <?php echo testimonialswidget_widget( $args, $number ); ?> testimonialswidget_list]
   ■[testimonialswidget_list] ■[testimonialswidget_list category=product hide_not_found
   =true] ■[testimonialswidget_list category=product tags=widget limit=5] ■[testimonialswidget_list
   char_limit=0 target=_new] ■[testimonialswidget_list hide_source=true hide_url
   =true] ■[testimonialswidget_list ids=”1,11,111″] ■[testimonialswidget_list meta_key
   =testimonials-widget-company order=asc limit=10] ■[testimonialswidget_list paging
   =true limit=10] ■[testimonialswidget_list tags=”test,fun” random=true] —-
 * Can you please give an example of calling this out? Some people rarely use WP
   and PHP and don’t regularly setup Arrays for calling.
 * I get this error:
    — Missing argument 1 for testimonialswidget_widget(), called
   in /home/public_html/wp
 * —
 * Thanks,
    -Brett
 * [http://wordpress.org/extend/plugins/testimonials-widget/](http://wordpress.org/extend/plugins/testimonials-widget/)

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

 *  Thread Starter [brett2000](https://wordpress.org/support/users/brett2000/)
 * (@brett2000)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-function-syntax/#post-3132084)
 * See above post, I also get this when I think I have it setup properly:
    — Using
   $this when not in object context in /home/public_html/wp-content/plugins/testimonials-
   widget/testimonials-widget.php on line 680 —
 * Is there a bug in calling it out this way?
 * Thanks,
    -Brett
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-function-syntax/#post-3132239)
 * Does the following help?
 *     ```
       <?php
       $args = array(
       'category' => 'product',
       'tags' => 'widget',
       'limit' => 5
       );
       echo testimonialswidget_list( $args );
       ?>
       ```
   

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

The topic ‘Theme function syntax?’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/theme-function-syntax/#post-3132239)
 * Status: resolved