Created
July 5, 2016 18:01
-
-
Save karenalenore/7c7d9375e8d4cf99d3fe741fd168f0d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Execute Shortcodes in Widgets | |
| add_filter( 'widget_text', 'shortcode_unautop' ); | |
| add_filter( 'widget_text', 'do_shortcode' ); | |
| add_filter( 'the_excerpt', 'shortcode_unautop' ); | |
| add_filter( 'the_excerpt', 'do_shortcode' ); | |
| add_filter( 'the_title', 'do_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment