Shortcodes in the Text Widget

This isn’t new, and has been posted elsewhere, but nevertheless…

add_filter( 'widget_text', 'do_shortcode' );

Now you can plop shortcodes in the default Text widget and have them handled correctly.

Leave a Reply

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

%d bloggers like this: