wptips

wptips

A guide to quick WordPress tips, snippets and recomended plugins

  • English
  • Español

Menu

  • Subscribe
  • Tips
  • Plugins
  • Snippets
  • About

How to add shortcodes in a text widget

// place this line in the functions.php of the theme or your plugin file
add_filter('widget_text', 'do_shortcode');

// place this line in the functions.php of the theme or your plugin file add_filter('widget_text', 'do_shortcode');

How to add shortcodes in a text widget
Tagged on: shortcodes    widgets
Lucy Tomás October 22, 2014February 2, 2015 Snippets, Tips No Comments
  • ← Rename table prefix on existing WordPress site
  • How to change Genesis breadcrumbs →

Leave a Reply Cancel reply

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

Like the social icons? Download the plugin from here!

Recent Posts

  • How to add custom fields to menu items
  • How to disable XMLRPC in WordPress
  • How to use plugin_action_links and plugin_row_meta filters
  • How to have the same slug for multiple languages with Polylang
  • Remove “allowed tags” notes after comments form

Tags

admin bar buttons child theme config contact form 7 custom post type database design errors export galleries genesis how to images import languages menus meta_box must have output plugin development polylang query resources search shortcodes social solutions theme development themes time saver tools widgets woocommerce
Copyright © [the-year] [site-link] - hola@wptips.me
The content of wptips.me is licensed under a Creative Commons Attribution 4.0 International License.
  • Subscribe
  • Tips
  • Plugins
  • Snippets
  • About
This site makes use of third party cookies for analitycs. If you continue browsing we consider you accept the use of cookies.
Accept