php help plz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JD
    Too lazy to set a custom title
    • Sep 2003
    • 22651

    #1

    php help plz

    Code:
    <?php if ( is_category('6')) { ?>pstop
    <?php } else if (is_category('3')) {?>brtop
    <?php } else {?>top
    <?php } ?>
    i can't for the life of me figure out wtf the deal is with this. I'm not a coder but can plink around in php usually without any issues but this thing is driving me nuts. when in category 6 it works perfect, when not in a category at all it works but when in category 3 it thinks it should use "top" and not "brtop"

    Any ideas?
  • dozey
    Confirmed User
    • Nov 2004
    • 552

    #2
    Presumably it is not in category 3 then, you should check what is_category does for category '3'

    Comment

    • JD
      Too lazy to set a custom title
      • Sep 2003
      • 22651

      #3
      i've double checked if the page is category 3 several times :/ it's the right category.

      Comment

      • JD
        Too lazy to set a custom title
        • Sep 2003
        • 22651

        #4
        fack... got it figured out.

        Comment

        Working...