How to use shortcodes in WordPress widgets

Reader Interactions


  1. harneet says


    i’m using genesis framework with ‘genesis sample develop’ child theme. The problem i am getting is that, this theme is not rendering any shortcodes and html in text widget even after i including

    add_filter( ‘widget_text’, ‘shortcode_unautop’);
    add_filter( ‘widget_text’, ‘do_shortcode’, 11);

    to my child theme’s ‘function.php’ file. Please help me out……

Leave a Reply

Your email address will not be published. Required fields are marked *