• Can someone just tell me if this syntax is correct? It works after the pages has been refreshed, but seems to glaze over it the first time:

    <?php
    if(is_home()){ echo '<param name="movie" value="http://mydomain.com/file.swf" />';}
    	else if(is_category(array(4, 7, 8, 9))){ echo '<param name="movie" value="http://mydomain.com/file.swf?portfolio=1" />';}
    		else { echo '<param name="movie" value="http://mydomain.com/file.swf" />';}?>

The topic ‘conditional statements’ is closed to new replies.