WP-Testimonials: a WordPress Plugin
WP-Testimonials is a plugin for WordPress that lets you display your customer/client/product testimonials on your blog.
You may add, edit or remove testimonials through the “Manage” navigation tab in the admin area. The plugin includes the option to display a random testimonial in your sidebar using PHP code for older templates or using a widget for newer themes. The widget is built-in with the plugin, so you have no additional files to worry about.
Testimonials can also be displayed all on one page. A template file is included that will need to be uploaded to your theme directory. Once in place, simply create a new page and select that template from the drop-down.
All of the information you need to install and use the plugin is contained in the readme file.
Installation services for this plugin are available at a flat fee of $10.00USD.
Release History
Version 1.0 - August 8, 2007
- initial release
Download
WP-Testimonials.zip (18.23 KB)482 downloads so far
Support
Use the comments box below to leave feedback, post a question or ask for assistance.


[...] WP-Testimonials includes the option to display a random testimonial in your sidebar using PHP code for older templates or using a widget for newer themes. (No Ratings Yet) Loading … Sphere: Related Content [...]
[...] WP-Testimonials includes the option to display a random testimonial in your sidebar using PHP code for older templates or using a widget for newer themes. [...]
I’m always looking for things to use in different projects. I thought about doing something like this but left it on the back burner. Very cool plugin.
great plugin.
FYI - I installed this as per instructions but the WP database table wasn’t created…not sure if there is an issue with the plugin or just my setup. I am on WP 2.2.
I went into my host and setup the necessary tables using the SQL from the plugin file and everything works fine now.
Hi Eric,
You’re the 2nd person to say the tables weren’t created. I’m glad you were able to manually do the tables, but am sorry it wasn’t automatic (as it should have been). I tested the plugin on several servers before releasing it and never had that happen. I’ll look into this further and see if I can find the issue and release an update once corrected.
Thanks for the feedback!
Jodi
[...] WP-Testimonials: a WordPress Plugin (Tags: wordpress plugin) [...]
[...] SunFrogServices.com » WP-Testimonials: a WordPress Plugin [...]
[...] WP-Testimonials includes the option to display a random testimonial in your sidebar using PHP code for older templates or using a widget for newer themes. [...]
The plugin didn’t install the table for me either. I’m not all that great with php (or sql) and can’t seem to parse out the sql from the php. Would someone mind posting up the sql query that can create the table?
Hi Robbie, Here is the table info you’ll need. This is assuming your table prefix for your WordPress installation is “wp_”.
CREATE TABLE `wp_testimonials` (
`testid` int(15) NOT NULL auto_increment,
`text_short` text,
`text_full` text,
`clientname` text,
`company` text,
`homepage` text,
`views` int(25) NOT NULL default '0',
PRIMARY KEY (`testid`)
) ENGINE=MyISAM ;
Thanks!
Hey Jodi,
I was curious if you had a form or a way to setup a form so users can submit testimonies without me adding them, then having a notification when a new one has been added so i can verify its not spam? I was going to investigate writing one out myself but I can’t really do that because I can’t seem to find a clean way of putting all the info in the database while still keeping the same setup and look that you wrote.
Any ideas?
Thanks!
- Dan
Hi Dan - A public form is not something I had thought about adding. I can see where it might be useful, though. I will put it into the “considerations” file for possibly adding to the next release.
My install also failed to create the SQL table. I am using Hostgator for hosting.
Daniel, are you able to create the table manually through phpmyadmin or something similar? The code for the table is pasted above. Do you have any restrictions on your database user or does the user have all privileges?
I love this plug-in but I’m having a few smallish issues I can’t seem to figure out.
1) it pulls in the title of the first blog post instead of the page title (”Testimonials”) and I can not figure out why or what to tweak to fix it. I’ve deleted and recreated the page a few times, I’ve checked the code in the testimonials.php template and unless I’m missing something obvious, I’m stumped.
2) I’d love a way to link from the sidebar testimonial to the entire page.
Hi Nicki - The problem with the title is most likely a theme issue. You may need to edit your testimonials.php file and add the if/while statement. Take a look at your page.php file in your theme and see how it is structured. You can copy the code from that page into the testimonials.php file.
I will keep in mind your suggestion for linking from the sidebar for possible inclusion in the next release. If you want to do this now, you can update wp-testimonials.php. Find the comment “// update views + 1 in table” in the file. It will be around line 280. Just above that line add an echo statement linking to your testimonials page.
I’m happy to help you further if this isn’t enough information for you. Just drop me an email.
[...] Visit [...]
[...] WP-Testimonials - Displays client testimonials in WordPress. Great if you have a business blog. [...]
Hi — I was really looking foward to using this plugin. However, when I try and activate the plugin I’m getting this error:
Fatal error: Call to undefined function: register_sidebar_widget() in /home/ckistler/public_html/blog/wp-content/plugins/WP-Testimonials/wp-testimonials.php on line 338
Anyone else experience this? And if so what am I doing wrong.
Thanks.
If your theme is not widget ready, you will not be able to use the sidebar widget included with the plugin.
In the next release, I will be sure there is code included to allow the plugin to run on non-widget ready themes.
Thanks for letting me know about the error message!
Great Plugin… absolutely fantastic!
The table seems not to be created. The Plugin does not work. Pitty.
I initially had trouble with the plugin and the database but when I read the readme. txt after having this issue, it said to put the files in particular places. I did that and ended up with a second WP-Testimonials plugin to activate in Wordpress - which used the files in the right places vs just dropping the folder into plugins. Then I deactivated the “bad” wp-testimonials plugin and removed the folder and it works fine.
Any way to change the font to italics for the random testimonials?
Ah.. figured it out.. the italic thing.. Just put an tag in front of the inserted php code and then closed it and voila, the testimonial text is italicized!
Hi - I have a second testimonial using just the short text box for testimonials - I only see one of the two testimonials - what am I doing wrong?
The sidebar will only show testimonials that have been entered in the “short text” box. If you leave that box blank, the testimonial will not show in the random block (sidebar).
The same rule applies to the “full text”. If you leave the “full text” block empty, the testimonial will not show on the static page.
I also think you may have discovered the problem some people have had with the table not being created. The files must be uploaded to the locations as described in the readme file. If the files are not in the correct location, there is a chance the tables will not be created.
terrific plugin! a bit of a wishlist: 1st, i second Mr. Dan Walker’s comment for a form so I’d not have to manually upload these comments. Alternatively, another way you might think of going about it is to treat each testimonial as a post, where categorizing it as a ‘testimonial’ would automatically land these at a specific page, also with an option to display these at a sidebar. I got that idea from an events plugin where entering a scheduled event uses the ‘post’ form - in the hope that might help keep you from having to make a new form just for testimonials.
2nd, i’d imagine some css tweakability would be apt at some point.
3rd, i’d also like a place to put an optional date field per testimonial.
Finally, a way to display more than one testimonial would be nice. And maybe you’d wanna rename the ‘client name’ to just ‘name’ since not everyone (such as I) plan to use it for clients. In my case, I wanted to display testimonials to the website per se.
here’s how i made use of your terrific plugin (check it out at the sidebar). Many thanks!
Hi Jodi,
I am now seeing both testimonials (still building that testimonial list!) but what I had to do is put the same text in the short and long text boxes I think. I am now going to create a testimonials page and link to it as well… I’ll experiment with using the short and long text boxes regarding the random display in the sidebar and the testimonials page..
Great plugin though. Thanks!
Everyone needs to read the readme to get it working though. I see lots of people who are missing the benefit because they think they can just copy the files to their plugins directory. It’s not very complicated but you have to put the files in the right places - only a couple of files.. Everyone who is complaining about it not working - read the README.TXT!!
Installed, but it comes up with table does not exist when I add a testimonal
Added the SQL manually instead.
[...] has made the task of gathering, managing and displaying testimonials so much easier through her WP-Testimonials plugin. Â And not only that, she has randomized the display of testimonials, which makes your [...]
I to did not get the table created. I host with GoDaddy and since I have never used the MYSQL I can not even get logged into the admin area to try to create the table. Any suggestions?
I got the table created and added some testimonials. Created a new page using the testimonial.php template. When the page is loaded it does not have the same formatting as teh rest of my blog. I deleted that page and created another using the default template and then the page looked correct but the testimonies are not visible. What did I do wrong?
I LOVE this! Worked perfectly for my needs!
Two minor things … it’d be nice to have the ability to select “target” when entering the URL
And, the Testimonials page got all wonky and I’d love your advice. http://www.secure33.com/~loletip/?page_id=50
These are MINOR quibbles … everyone should use this!
This is exactly what i’ve been needing. but is there was a way to post the testimonials on a page or a post?
Would love the option of adding an image to the testimonial as well.
Great Plugin.
[...] WP-Testimonials - Mostra depoimentos na barra lateral do seu blog [...]
Great plugin. I would like to ask you to consider letting users add their own testimonials.
It would be great if there could be a user input form where the users can add their own testimonials and then the site admin could approve them before they gets publicised.
Otherwise great plugin that does what is says it does, ie shows testimonials.
/Mattias
hi, just installed it. Love it. I initially had the no tables created bug. but then read the instructions - I’d uploaded the wp-testimonials folder to plug ins, not just the wp-testimonials.php. So i deactivated, deleted from plug-ins, uploaded wp-testimonials.php and viola, worked great. Hope others learn from my stupidity because it is a great plug in.
Hi, I have the same problem than Rick. No database table created. Maybe, the plugin don’t work with wordpress 2.5 ?
Oups, I have copy the folder and no just the file.. It’s work now
Hi there,
Great plugin!
I needed some CSS control over the display PLUS I didn’t feel right about using all the BR tags to control the layout (as is utilized in the plugin itself).
So, I decided to wrap the various testimonial-related elements in P tags and give each one its own class (in the following example, classes such as “tquote” and “tclient” apply to the testimonial quote and the client name).
I changed lines 262-280 in the plugin file (wp-testimonials.php) as follows:
/* show one random testimonial in sidebar */
function sfstst_onerandom() {
global $wpdb;
$table_name = $wpdb->prefix . "testimonials";
$randone = $wpdb->get_row("SELECT testid, clientname, company, homepage, text_short, views FROM $table_name WHERE text_short !='' ORDER BY views ASC LIMIT 1");
echo '';
echo nl2br(stripslashes($randone->text_short)).'';
if ($randone->company != '') {
echo ''.stripslashes($randone->clientname).'';
if ($randone->homepage != '') {
echo 'homepage.’”>’.stripslashes($randone->company).’‘;
} else {
echo stripslashes($randone->company);
}
} else {
echo ”.stripslashes($randone->clientname).”;
}
I hope this helps anyone wishing to do the same!
(yes, I realize there may be a better way, but this provided a great & quick fix)
Well, the code naturally got messed up within the above comment. My apologies.
Like I should have done in the first place, I’ve posted that sample code in Pastebin:
http://pastebin.ca/978820
the snippet within pastebin only refers to lines 262-280.
Thanks again for the great plugin!
[...] plugin was developed by James and derived from Jodi Diehl’s excellent WP-Testimonials [...]
[...] also fixed the Testimonials plugin. I was really happy with the fact that when I went back to the page to see why it wasn’t [...]
[...] Sunfrog Services Inc Website Development » WP-Testimonials: a WordPress Plugin (tags: blogging wordpress plugin) [...]
[...] do this you need to install the WP Testimonials plugin and while creating your testimonials page, select the template “Testimonials” from the [...]
Hey there. I’ve been using your plugin just fine, however when I upgraded my install from 2.5 to 2.5., all my testimonials dissapeared! Did this happen because I deactivated my plugin? Any thoughts? thanks.