Shortcodes not working in widgets
-
Hey, I really love, love, love your plugin. Works awesome on any page or post. However, I’ve tried to use it in widgets to get some of that awesome functionality, but it doesn’t seem to work. I’ve tried it in MCE visual editor, and straight up text widget.
It would sure be nice to be able to use your functions in a widget area; I could just do so much more. If you know of a way to accomplish this that I’m missing, I’d sure appreciate the advice.
I am using a parallax pro theme in the Genesis frame work if that sheds any light.
-
to run shortcode in textwidgets, you might need to add this to functions.php of your theme:
add_filter('widget_text', 'do_shortcode');
other widgets might require different fixes; please specify which widgets you have tried.
Funny, I’ve added this one.
/* Allow shortcodes in widget areas */
add_filter(‘widget_text’, ‘do_shortcode’);Did not work. Have you ever used these shortcodes in a widget?
I’ve tried it in MCE visual editor, and a straight up text widget. Nothing else. Any other widget suggestions?
what plugin are you using for the ‘MCE visual editor’ widget?
The [wc_row] code is from WP Canvas – Shortcodes, aas are all the other shortcodes I used on that page. From the MCE visual editor widget, I can use the WP Canvas – Shortcodes interface; from the straight up text widget, I place them manually.
I am going to test this in another theme just for the heck of it.
Different site, used in homepage widgets (text widget)
Same codes used in a page..
http://www.zoselco.com/test-test/
FYI, also placed the
add_filter(‘widget_text’, ‘do_shortcode’);
Also not working for me in Text/HTML widgets (also added the do_shortcode code to functions.php). Anyone else have any luck with this?
- The topic ‘Shortcodes not working in widgets’ is closed to new replies.