Shortcode in sidebar widgets
-
Hey all,
I have some very simple sortcode in ‘functions.php’ file that works when displaying posts in my main site content, but when I try to use a widget to display an excerpt of the post in the sidebar the shortcode does not work.
I have added
add_filter('widget_text', 'do_shortcode');
to ‘functions.php’ but I’m still getting no joy. Does anyone know a way to sort this at all?Thanks.
- The topic ‘Shortcode in sidebar widgets’ is closed to new replies.