Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created May 26, 2012 20:03
Show Gist options
  • Save corsonr/2795125 to your computer and use it in GitHub Desktop.
Save corsonr/2795125 to your computer and use it in GitHub Desktop.
Allow shortcode in text widget
<?php
// To be able to use shortcode in text widget, add this line into functions.php
add_filter('widget_text', 'do_shortcode');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment