My code looks something like this:
<?php
some php code here
some php code here
some php code here
some php code here
function functionname(){
echo '<?php [B]php code here[/B] ?>';}
add_action('wp_head','functionname');
?>
When I activate the plugin I get this error:
[B]Parse error: syntax error, unexpected T_INCLUDE_ONCE[/B]
this function works fine when I use html but gives me this error when i use php? anyone know how to fix this? OR anyone know an alternative so I can add php to the header of wordpress from a wordpress plugin?
thanks guys :)
jess


Sign In
Create Account

Back to top









