blogbysid.wordpress.com
Executing PHP inside a widget in WordPress
To enable php in Widgets, you add the following code in your theme’s functions.php add_filter(‘widget_text’,’execute_php’,100); function execute_php($html){ if(strpos(…