WordPress.org

Ready to get started?Download WordPress

Forums

Testimonial Basics
[resolved] Multiple testimonials? (13 posts)

  1. dizzyland
    Member
    Posted 1 year ago #

    I like your widget so much that I'd love to have more than one testimonial showing up at a time. Is there a tweak that i can do to have it display 3 random testimonials?

    http://wordpress.org/extend/plugins/testimonial-basics/

  2. kevinhaig
    Member
    Plugin Author

    Posted 1 year ago #

    Hi dizzyland

    Glad you like it.

    Sorry but the widgets only allow one testimonial at a time. You should be able to use the widget more than once in the same sidebar. But that said it may randomly pick the same testimonial.

  3. dizzyland
    Member
    Posted 1 year ago #

    Yeah I tried that and noticed it was doubling up on occasion. Thanks for the quick reply.

    Is there any plans for allowing multiple testimonials in a future upgrade?

  4. kevinhaig
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry. Not at this time.

  5. davidbaron
    Member
    Posted 1 year ago #

    Hi Dizzyland and Kevin,

    I too needed (wanted) multiple testimonials showing up in the widget. I am a programmer, and so I 'enhanced' Kevin's code to allow for an additional 'option' in each instance of the widget: Display Count. This can be 'all' or a number. If the display count is NOT '1', then the 'ID' does not come into play and the testimonials are random. If the display count is greater than or equal to the number of approved testimonials, then you get them all. Seems to work quite nicely.

    Kevin, I can certainly share my code back to you - just let me know.

    I'm probably going to also look into adding a font-size option and line-height option for display.

    Thanks Kevin for a very nice little package.

  6. kevinhaig
    Member
    Plugin Author

    Posted 1 year ago #

    @davidbaron

    The widget was designed for only one testimonial, and I have no plans to change it. The reason for this is long widgets can look very awkward.

    Having said that, there is a way to put multiple testimonials in a widget. If your theme allows shortcodes in the widgets you can use the main area shortcode in a text widget. However, the Random option will still only display one testimonial.

    If you are not able to use shortcodes in widgets but you want to, you can enable them by putting :

    /**
     *  Allows shortcodes to be displayed in sidebar widgets
     */
    add_filter('widget_text', 'do_shortcode');

    in functions.php

  7. dizzyland
    Member
    Posted 1 year ago #

    davidbaron,

    I'd sure like to have that code if you don't mind sharing it. I'd REALLY prefer to display multiple testimonials and on my site it wouldn't look awkward. -It would look correct... to my eyes anyway.

  8. dizzyland
    Member
    Posted 1 year ago #

    Kevin,

    I tried doing the shortcode option that you mentioned and it comes up without the cool box around it... It's just text. I'd very much like to have the code to just make the widget work as David mentioned. I understand that it's your baby and you have your reasons but it would be nice to have that functionality.

    Thanks,
    Josh

    PS... thank you for the awesome plugin!

  9. davidbaron
    Member
    Posted 1 year ago #

    Josh,

    Please contact me via private email at david-baron@msn.com.

    -David

  10. kevinhaig
    Member
    Plugin Author

    Posted 1 year ago #

    David

    Looks like interest is increasing in this option. Pass me your code if you will and I'll take a look at it in the next update. I'm busy with other things right now, but in the next month or so I'll sit down and look at it.

    Thanks

    Josh

    You should be able to set the format in the main area section of the admin panel? But if David's mod is good for you then go for it.

  11. dizzyland
    Member
    Posted 1 year ago #

    David,

    Email sent... Thanks a lot!

    Kevin,

    Awesome! I'll be sure to upgrade when the time comes to check out your update.

  12. nicnack
    Member
    Posted 1 year ago #

    does this plugin rotate through testimonials, or does it only show and stay on one?

  13. kevinhaig
    Member
    Plugin Author

    Posted 1 year ago #

    No rotator nicnack....sorry. The random scripts will refresh when the screen is re-loaded, and the cache is refreshed.

    I'll maybe look at it in the next update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic