Sometimes is helpful to have a text widget for the sidebar able to execute PHP code. I use it for conditional widget content display, for example when I need to put different ads or different banners looking at the category of the displayed post.

Instead to have a totally new widget, with the PHP Text Widget plugin the already available and standard Text widget of WordPress can execute PHP code. Once installed and activated, any PHP code can be added to the text widget.

Pay attention: PHP code must be used is you are a coder and you know what you’re doing!

Similar Posts

Leave a Reply