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.
- 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 [firstname.lastname@example.org]
Plugin installation is quite easy.
- Download zip file and Extract it
enable-shortcode-and-php-support-in-text-widgetfolder to your /wp-content/plugins/ folder.
- Go to the ‘Plugins’ page in the menu and activate the plugin.
Alternatively, search and install the plugin from your WordPres dashboard.
- Go to Wodpress Admin Panel > Setting > Shortcode and PHP support in Text widget,
- 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 w3guy.com for the more information.
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…
Works like it’s supposed to and so simple! Thank you!
Very simple plugin, a couple of checkboxes, thank you!
Contributors & Developers
“Enable Shortcode and PHP in Text widget” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Minor bug fix
- Spanish translation added
- Translation ready
- Bug fixes
- Initial release.