• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Can a testimonial be embedded into a widget?

Foliovision › Forums › FV Testimonials › How to … › Can a testimonial be embedded into a widget?

  • Andrew 13 years, 9 months ago

    Can a testimonial be embedded into a widget? Similarly could multiple testimonials based on {options} be embedded into a widget?

Viewing 16 replies - 1 through 16 (of 16 total)
  • zdenka 14 years ago

    Hi Andrew,

    at the moment you can insert testimonials either directly into the template or into the PHP widget. You need to use following code:

    <?php echo apply_filters('the_content', '[Testimonials: all]'); ?>

    Adjust the properties for testimonials to be displayed as you wish.

    We are planning to release a new version of testimonials plugin where this issue will be fixed and the shortcode will work in normal Text widget as well. Until then this workaround works.
    Hope this helps,
    Zdenka

    Andrew 14 years ago

    Thanks Zdenka!
    That works to get full testimonials into a widget. Could I truncate the testimonials at a certain number of characters and insert a “read more” link to the full testimonials page?

    zdenka 14 years ago

    Hi Andrew,

    excerpts are not supported in the basic version. Pro version supports excerpts and fully customisable templates.

    Zdenka

    Andrew 14 years ago

    Could you point me to documentation on how to use excerpts in pro version? I don’t see the parameter in the documentation.
    Thanks,
    Andrew

    zdenka 14 years ago

    Hi Andrew,

    since you have the pro version, the easiest way for you to fully customise the testimonials output is to create a template for it, and them use this template in the shortcode. Advantage of templates is that you can adjust html just as you need. Here’s guide to templates which might help you to get started.

    The very basic template could be just
    [title ,]
    [excerpt]

    But I suggest you to check the range of other tags that can be used and fill out the html as well.

    Zdenka

    Andrew 14 years ago

    I have implemented template in the pro version of testimonials. I have one template that is working fine and another that does not change the style of the content on the testimonials page.

    My template contents is:
    <p style=”font-size:18px; color:#3366CC; font-family:arial”> [title] </p><p style=”font-size:12px; color:#404040; font-family:arial”>[content]</p>

    The call to the fvtestimonials content in the page is:
    [Testimonials: -t 2 all]

    the page in question can be viewed at:
    “http://www.corepractice.com.php5-20.dfw1-1.websitetestlink.com/testimonials&#8221;

    I have “output default css” and “use texy” – unchecked in the options.

    what do I need to do to have the template affect all the page contents the same way?

    Thanks,
    Andrew

    zdenka 14 years ago

    Hi Andrew,

    When looking into the source code of your testimonials page it seems that the heading p tag is styled, but the content one isn’t. To me this looks like your actual ‘content’ of the testimonial already contains a p tag which causes closure of the above one. Can you please check in your testimonials, their content? Are you using p tags there?
    To avoid this I would suggest changing the p tag in your template for div for example, with the same styling.
    Hope this helps,
    Zdenka

    von 13 years ago

    is there any way to display the excerpt anywhere in my theme? Thanks

    zdenka 13 years ago

    Hello Von,

    only Pro version supports excerpts and fully customisable templates.

    Zdenka

    LisaTarrant 13 years ago

    Are there any template examples in the Pro version that you can point me to? I’m not loving the look but don’t know where to begin!

    LisaTarrant 13 years ago

    How do we just feature one testimonial in the widget and have it rotate from page to page? It seems a big disadvantage that a widget feature is not included with this plugin.

    zdenka 13 years ago

    Hi Lisa,

    we are planning a brand new release of testimonials plugin, as well as their pro version. It will come out in May.
    The new version will have shortcodes that can be used within normal text widgets.
    Thanks for this suggestion to create a dedicated widget, we will certainly consider this in this or in one of the next releases!
    Guide to templates is here, and at the very end of the article there’s an example of simple template, which you can start with.

    Thank you,
    Zdenka

    LisaTarrant 13 years ago

    Any update on a new release for this that includes random testimonials in the widget?

    foliovision 13 years ago

    Hello Lisa,

    I think this widget will only be available in PRO version and we have released a new basic version to WP Repository in order to release a brand new basic version (which is already finished) with related pro version in August.

    Best regards,
    Peter

    Kriselle 13 years ago

    I still can’t seem to get the random testimonial to work in my widget. I have the PRO version. Here is my widget code:

    <h4>[title]</h4><p>[content]</p><p>Read more</p>

    Here is my code I am using in my PHP widget:

    <div id=”testimonial-widget”><?php echo apply_filters(‘the_content’, ‘[Testimonials: -c1 -t1 ]’); ?></div>

    foliovision 13 years ago

    Hello Kriselle,

    yes the code you’re using is displaying only the top most approved testimonial. You should use some of the built functions. Here is a sample code that displays random testimonials. It can be inserted into PHP widget.

    <?php fpt_get_testimonials( array( 'where' => array( 'status' => 'approved' ), 'order' => array( 'rand()' => 'ASC' ), 'limit' => 1 ), true, 1 ); ?>

    It echos the result automatically. The last 1 in the code is for template number, you can change it to your convenience.

    But be aware that this may be a little slow since using MySQL rand() for sorting is highly ineffective. If you have only like few hundreds of testimonials it should be fine.

    Best regards,
    Peter

Viewing 16 replies - 1 through 16 (of 16 total)
Reply To: Can a testimonial be embedded into a widget?



Please Sign in or Register to upload files.

Related Posts

  1. FV Testimonials

  2. FV Testimonials: Embedding

    FV Testimonials: Embedding

  3. Using Soft Hyphens to Disable Embedded Shortcode in WordPress or other CMS Web Tutorials

    Using Soft Hyphens to Disable Embedded Shortcode in WordPress or other CMS Web Tutorials

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!