Support » Plugin: WP Testimonial Widget » Shortcodes not working

  • John O



    I am working on a client website and I am trying to use your testimonials plugin. I can get the widget working fine, but when I try to use the shortcode, nothing happens.

    when I view source on the page that should be displaying testimonials i see the following markup:

    <script type="text/javascript">
                var strEffect = '';
                if(strEffect != 'none')
                      fx: strEffect,
                      timeout: ''
        <div class='data_display'>

    Any idea where I am going wrong? Thanks.


Viewing 3 replies - 1 through 3 (of 3 total)
  • John, I was having the same issue today with the shortcodes..Seems if you use order you must also use orderby. The example shortcode in the help section is wrong, try this.

    [swp-testimonial testimonials="1" order="asc" orderby="id" effects="scrollRight" time="5000"]

    alternatively you can include default values in the shortcode.php lines 8-12 like this.

    function swpt_testimonial_shortcode($atts){
       		'testimonials' => '1',
       		'order' => 'asc',
          'orderby' => 'id',
          'effects' => 'fade',
          'time' => '5000',
          ), $atts));

    this way you can use the shortcode with any combination of the available attributes and it will display correctly.

    Hi Adam,

    Thanks for this, I’ll give it a go. 🙂


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes not working’ is closed to new replies.