Conditional php statement not working
-
My blog runs properly and has other if statements and loops which work fine. What I can’t understand is why i can’t get the below statement to run!
<?php if ( is_home() ) { query_posts('cat=-14&showposts=1'); } ?>
But without the IF statement,
<?php query_posts('cat=-14&showposts=1'); ?>
it works as it should!I can’t get
<?php if ( in_category('3') ) { ?>
blah blah
<?php } else { ?>
blah blah
<?php } ?>
to work either! It seems to be ignored..I’m running wp2.0.4 and tried both on PHP5 and PHP4. Sigh.. It seems to be so simple and its driving me nuts. If any more info is needed please don’t hesitate to ask for it..
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional php statement not working’ is closed to new replies.