Syntax error on conditional
-
Hi, I am having problems since hours to get this to work.
I put this code in my sidebar.php but i only get errors.
I hope someone knows a solution for this:<? if (is_home()) { query_posts($query_string . '&cat=74'); } else if (is_single('1')){ query_posts($query_string . '&cat=1') } else if (is_single('2')){ query_posts($query_string . '&cat=2') } else { query_posts($query_string . '&cat=4') } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Syntax error on conditional’ is closed to new replies.