WP Customer Reviews is a great way to add testimonials to your WordPress install. It seems like clients always want to have their testimonials rotate somewhere so here’s how to get your wp customer reviews to cycle in a widget.
1) Add the WP Customer Reviews Shortcode
You’ll first need to make sure that you theme supports the shortcode. To do that you add this line of code to your functions.php file:
Then the short code is something like this:
[WPCR_SHOW POSTID=”ALL” NUM=”5″ SNIPPET=”200″ MORE=”” HIDECUSTOM=”0″ HIDERESPONSE=”0″]
I left the More text empty because it didn’t behave the way I wanted it to… more on that below. I wanted it to show testimonials submitted to all posts, to show at most 5 reviews, and keep the length under 200 characters each.
2) Modify plugin code to work well with jQuery cycle
My client wanted to change the order that things appear in and in order to make the html cycle with jQuery cycle I had to clean up the html. So if you want your reviews to cycle you’ll have to replace your plugin’s wp-customer-reviews.php file with this one.
3) Add jQuery Cycle to your website
The last step is to add the cycle magic and this is all done by jQuery cycle which you can download here:
If you’d like it to cycle all of the divs within the sidebar (my sidebar has an id of secondary) you’d add this code to your header.php after adding the js you download to a js folder in your theme.
If you’d like to see it in action it’s currently running at portland.monkeybarstorage.com