Forums

conditional statements (1 post)

  1. m u r
    Member
    Posted 2 years ago #

    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" />';}?>

Topic Closed

This topic has been closed to new replies.

About this Topic