Okay
  Public Ticket #789974
shortcode in sidebar widget
Closed

Comments

  • will started the conversation

    Can you please detail the best solution for me adding shortcode to a sidebar widget for the home page? You can see I have tried using text and other widgets, which did not work. My purpose is to include a custom widget interactive map in one of these areas. Thanks!

  •  93
    djwd replied

    Hi there!
    thank your purchase.

    That doesn't seem to be strictly theme related as the native WP text widget won't output shortcodes even with the default Twenty-xx themes as far as I remember

    There are plugins for this purpose, although I think adding this line anywhere in your functions.php should make the text widget output shortcodes:

    add_filter('widget_text', 'do_shortcode');
    

    Hope that helps

    Regards
    djwd