[epl_testimonials] Shortcode
The Testimonials feature allows you to output testimonials on your pages and posts using a simple Shortcode. There are a variety of options available with this shortcode.
[epl_testimonials]
You can output testimonials by a specific id type like this:
[epl_testimonials id="123456"]
Usage
There are several options that may be specified using this syntax:
[epl_testimonials option1="value1" option2="value2"]
You can also print a list of testimonials in a template like so:
<?php echo do_shortcode('[epl_testimonials template="modern"]'); ?>
All Options
id limit offset author template location department tools_top tools_bottom sortby sort_order query_object pagination class
Options
The following options are accepted:
id
specify which testimonial to display. The default is all testimonials, newest at the top.
[epl_testimonials id="123456"]
limit
specify the number of testimonials to display per page. The default is 10.
[epl_testimonials limit="20" ]
offset
specify the number of testimonials to skip. Default is blank.
[epl_testimonials offset="3"]
author
specify the wordpress author id of the testimonial. Default is blank.
[epl_testimonials author="jane-agent"]
location
specify the location taxonomy slug. Should be a name like sorrento.
[epl_testimonials location="sorrento"]
department
specify the department taxonomy slug. Should be a name like sales.
[epl_testimonials department="sales"]
tools_top
specify outputting the print options and listing count before the testimonials list. Default is off.
[epl_testimonials tools_top="off"]
tools_bottom
specify outputting the print options and listing count before the testimonials list. Default is off.
[epl_testimonials tools_bottom="off"]
sortby
specify outputting the order of the listings. Default is sorted by published date newest first. Default is date. Options:
- date
- rand (Random sorting)
[epl_testimonials sortby="date"]
sort_order
specify the order either ASC or DESC. Default DESC. Options:
[epl_testimonials sort_order="ASC"]
pagination
specify outputting the pagination options. Default is on.
[epl_testimonials pagination="off"]
class
specify a wrapper class for the shortcode.
[epl_testimonials class="my-custom-class"]