WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Testimonials by WooThemes

Show off what your customers are saying about your business and how great they say you are, using our shortcode, widget or template tag.

Usage

To display your testimonials via a theme or a custom plugin, please use the following code:

<?php do_action( 'woothemes_testimonials' ); ?>

To add arguments to this, please use any of the following arguments, using the syntax provided below:

  • 'limit' => 5 (the maximum number of items to display)
  • 'per_row' => 3 (when creating rows, how many items display in a single row?)
  • 'orderby' => 'menu_order' (how to order the items - accepts all default WordPress ordering options)
  • 'order' => 'DESC' (the order direction)
  • 'id' => 0 (display a specific item)
  • 'display_author' => true (whether or not to display the author information)
  • 'display_avatar' => true (whether or not to display the author avatar)
  • 'display_url' => true (whether or not to display the URL information)
  • 'echo' => true (whether to display or return the data - useful with the template tag)
  • 'size' => 50 (the pixel dimensions of the image)
  • 'title' => '' (an optional title)
  • 'before' => '<div class="widget widget_woothemes_testimonials">' (the starting HTML, wrapping the testimonials)
  • 'after' => '</div>' (the ending HTML, wrapping the testimonials)
  • 'before_title' => '<h2>' (the starting HTML, wrapping the title)
  • 'after_title' => '</h2>' (the ending HTML, wrapping the title)
  • 'category' => 0 (the ID/slug of the category to filter by)

The various options for the "orderby" parameter are:

  • 'none'
  • 'ID'
  • 'title'
  • 'date'
  • 'menu_order'
<?php do_action( 'woothemes_testimonials', array( 'limit' => 10, 'display_author' => false ) ); ?>

The same arguments apply to the shortcode which is [woothemes_testimonials] and the template tag, which is <?php woothemes_testimonials(); ?>.

Usage Examples

Adjusting the limit and image dimension, using the arguments in the three possible methods:

do_action() call:

<?php do_action( 'woothemes_testimonials', array( 'limit' => 10, 'size' => 100 ) ); ?>

woothemes_testimonials() template tag:

<?php woothemes_testimonials( array( 'limit' => 10, 'size' => 100 ) ); ?>

[woothemes_testimonials] shortcode:

[woothemes_testimonials limit="10" size="100"]

Requires: 3.4.2 or higher
Compatible up to: 4.0
Last Updated: 2014-9-4
Downloads: 124,297

Ratings

4 stars
4.3 out of 5 stars

Support

0 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,8,8 80,5,4 100,1,1
0,1,0 100,1,1
100,2,2
100,1,1
0,2,0
100,2,2