Enable Shortcode and PHP in Text widget


By default, the Text widget only support text and HTML. With this plugin activated, PHP and shortcode would be supported.

To execute PHP in text Widget, ensure the PHP code to be executed is encapsulated in between PHP opening and closing tag <?php ... ?>

More information and documentation at http://w3guy.com/shortcode-php-support-wordpress-text-widget/ for the more information.

See Also

  • ProfilePress: A shortcode based WordPress form builder that makes building custom login, registration and password reset forms stupidly simple. More info here
  • OmnipayWP: Payment gateways for WordPress including Easy Digital Downloads & WooCommerce plugins.


  • Spanish (es_ES) – Andrew Kurtis [andrewk@webhostinghub.com]


  • Plugin settings
  • Text Widget settings
  • Output of executed PHP and shortcode


Step 1

Plugin installation is quite easy.

  1. Download zip file and Extract it
  2. Upload enable-shortcode-and-php-support-in-text-widget folder to your /wp-content/plugins/ folder.
  3. Go to the ‘Plugins’ page in the menu and activate the plugin.

Alternatively, search and install the plugin from your WordPres dashboard.

Step 2

  1. Go to Wodpress Admin Panel > Setting > Shortcode and PHP support in Text widget,
  2. Configure the plugin option.

Preguntas frecuentes

How does the plugin work?

The plugin is quite easy to use. Go to the settings page and check the options to activate.
Visit my blog w3guy.com for the more information.


8 de agosto de 2018
Nice plugin, I like that it has a couple of settings so you can uncheck the support for shortcodes if you're using a 4.9+ version of WP which now natively supports shortcodes.... However, the 'nag' message about another plugin by the developer is highly annoying and does not have an easy way to dismiss as most other notifications do. I'd be happy to upgrade my opinion and review if the next update to this plugin provides a way to dismiss this message. As is, I found annoying enough to replace it with a different plugin.
3 de septiembre de 2016
Honestly I am not actually using your plugin, rather the code behind it. I knew this was possible, just couldn't figure out the correct filters. This plugin saved me a ton of research. I'll be dropping those two code snippets into all my themes moving forwards! Nice work...
3 de septiembre de 2016
Works like it's supposed to and so simple! Thank you!
Read all 13 reviews

Contribuidores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.


Registro de cambios


  • Fixed Parse error: syntax error, unexpected ‘[‘ for PHP less than 5.4


  • Improve compatibility with WordPress 5.0


  • Make admin notice dismiss button more obvious.


  • Small fix and improvement.


  • Update plugin to be compatibile with latest WordPress after many years.


  • Minor bug fix


  • Spanish translation added


  • Translation ready


  • Bug fixes


  • Initial release.