To add testimonials to your posts, pages, or widgets use the following code:
[plumwd-testimonials]
To add the testimonials plugin to your WordPress theme use the following code inside your template:
echo do_shortcode('[plumwd-testimonials]');
The plugin also supports several attributes for the shortcode, below is a listing of the attributes and what their purpose is:
- size -> this allows you to limit the number of characters returned using the plugin. It will display the first nth number that you specify. Usage:
[plumwd-testimonials size="100"]
- ending -> this allows you to specify an ending for your testimonial. This comes in handy when limiting the number of characters returned. Usage:
[plumwd-testimonials ending="..."]
- num -> this allows you to limit the number of testimonials returned, leave blank to retrieve them all. Usage:
[plumwd-testimonials num="3"]
- type -> allows you to specify how you want the list to be displayed. The available options are: list, para, span, div. By default testimonials will display as an unordered list. Usage:
[plumwd-testimonials type="list"]
- class -> this allows you to apply a class to the item container so that you can apply custom styles. Usage:
[plumwd-testimonials class="test"]
id -> this allows you to apply an id to the item container. Usage:
[plumwd-testimonials id="testimonials"]
childclass -> this applies only to the list item. Setting childclass will place a class on the li element. Usage:
[plumwd-testimonials childclass="slides"]
Many thanks for this and apologies for this really stupid question but when you add a testimonial, where is it seen? I want them to go on a separate page so they can all go together. I really like the example in the quotation marks or have also seen a speech bubble effect. I have no coding experience so any help would be much appreciated.
Thank you
Julia
Hi Julia,
To display the testimonials you need to use the shortcode. To make a list you could just put
[plumwd-testimonials]. For the site that I used it with the quotes, I used jQuery to make the slides:The markup is something like this:
In your head tag put
<!-- jQuery Testimonies --> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#testimonials .slide'); setInterval(function(){ jQuery('#testimonials .slide').filter(':visible').fadeOut(7000,function(){ if(jQuery(this).next('li.slide').size()){ jQuery(this).next().fadeIn(1000); } else{ jQuery('#testimonials .slide').eq(0).fadeIn(1000); } }); },1000); }); </script> <!-- END jQuery -->In your post or page:
[plumwd-testimonials size="100" ending="..." num="3" type="list" class="test" id="testimonials" childclass="slide"]i read your post, i just am still confused :-) where do i place the jquery code? i put it in the page itself and i didnt see it work
Hi Rafael,
The jQuery code should go into your template header just before the closing head tag. Can I see a link to what you’re trying to do?
Elke Hinze recently posted..We have new business cards
http://marykole.com/?page_id=9
Just sent you an email.
yeah looks like im missing something i used the jquery you have a bit up in the header and the code you have for the testimonials a bit up there as well :-)
rafael recently posted..Hello world!
Im helping a friend with his site and wanted a rotating testimonial widget of plugin with short code and I used the jQuery code above in the header as well but it put all three testimonials on the area at the same time instead of rotating them in and out. Maybe Im not using the correct plugin but thought I would ask before I went looking for something else.
Thanks in advance,
Tim
Tim recently posted..Leadership Strategy Institute
Never mind. I decided to just keep a page for this purpose as the testimonials were longer than I had space for in the header.
Tim
Tim recently posted..Leadership Strategy Institute
The plugin doesn’t have a rotating script built in, but you could make it rotate if you wanted to. The plugin merely displays the testimonials. What you do with it is up to you.
The example I gave above is just one of the many ways to make it work.
Elke Hinze recently posted..Verity Energy Advisers
How do you get the plugin to output the even & odd child classes like you did with the interior design firm shown in your “see it in action” section?
The even and odd classes as shown were done using an earlier version of the plugin that did not support shortcodes. I will update the plugin to make it easy to do odd/even styles.
Elke Hinze recently posted..La Belle Dame Reducing Spa
Will you consider adding an input field to add a link to the reviewer’s website? I tried inserting the link directly into the “Customer Name” field — even tried escaping the quotes — but it breaks the code. Thanks for the plugin!
Hi Brandon,
That is an excellent suggestion. I’ll make the addition and push a change soon.
Elke Hinze recently posted..La Belle Dame Reducing Spa
Elke, is there a way to place all the testimonials on a single page in the exact order they have been input? So that the display order is list or para or span in the same order that they were placed in…Thanks
Brian let me revisit the plugin to see what I can do about getting it to list the way you are suggesting.
Thanks!
Elke Hinze recently posted..La Belle Dame Reducing Spa