a savory collection of WordPress related things
When you need to add actual code into a widget text box.
Add to functions.php
add_filter('widget_text','execute_php',100); function execute_php($html){ if(strpos($html,"<"."?php")!==false){ ob_start(); eval("?".">".$html); $html=ob_get_contents(); ob_end_clean(); } return $html; }
Comments are closed.