This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

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 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


  • Spanish (es_ES) – Andrew Kurtis []


  • 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.


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 for the more information.


Worked like a charm!

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…

Read all 13 reviews

Contributors & Developers

“Enable Shortcode and PHP in Text widget” is open source software. The following people have contributed to this plugin.




  • Minor bug fix


  • Spanish translation added


  • Translation ready


  • Bug fixes


  • Initial release.