You use the testimonialswidget_list
shortcode, but you also need to add add_filter('widget_text', 'do_shortcode');
to your themes functions.php
file.
FYI – FAQ 47 is added to cover this.
Thank you! Where should that code be added within the functions.php file?
Then, how does the shortcode itself work? I have used shortcodes within the body of posts for things like tables, but I’m not sure how to use this one to create the desired effect in the widget.
My goal would be to have about 5 testimonials, displayed with the widget, all simultaneously visible.
Thanks again!
David
I’ve updated FAQ 47 to be clearer in a future release. For now…
First, you’ll need to enable shortcodes in widget by adding add_filter('widget_text', 'do_shortcode');
to the bottom of your themes functions.php
file, before the closing ?>
.
Then for the testimonials listing in a widget, use a Text widget with a shortcode like [testimonialswidget_list limit=5]
.