• Resolved pu_rplecow

    (@pu_rplecow)


    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)
  • Thread Starter pu_rplecow

    (@pu_rplecow)

    ARGH!! I can’t believe it!! After 3 days of wracking my brains it was a plugin that was messing with the queries on the home page. That cause all my queries to make multiple loops all messed up! Thanks to all who read anyways. Must have seemed like a ridiculous problem. Everything is working fine now.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional php statement not working’ is closed to new replies.