Executing PHP code in a text widget

Sometimes you might have the need to execute PHP code in a text widget, for instance when linking to pages using

bloginfo('url');

This function will enable the execution of PHP in text widgets:

Code is courtesy of Emanuele Feronato

Leave a Reply

XHTML: You can use these tags: