Thread: php help plz
View Single Post
Old 11-21-2009, 09:33 PM  
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
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?
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote