How to echo "
-
Hi , i tried writing some code i placed in my header.php into a plug in
echo " <link rel=\"stylesheet\" href=\""; echo $available_themes[$current_theme]; echo " \" type= \"text/css \" media=\"screen\" > " ;
works fine but i want the header to check the category:
echo " <?php if ( in_category( 'Test' ) ) { "; echo " <link rel=\"stylesheet\" href=\""; echo $available_themes[$current_theme]; echo " \" type= \"text/css \" media=\"screen\" > " ; echo ""; echo " } else { "; echo " } ?>";
i guess i do it wrong but that is the code i want in the header.php since it works when placed there manually, but the <?php is recognized as php code and not echoed correctly i tried placing \ but it didnt work
thanks in advance
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to echo "’ is closed to new replies.