Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Function: do_shortcode

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.

Posted on March 2, 2012Categories WordPress BitsLeave a comment on Shortcodes in the Text Widget
Proudly powered by WordPress