Forums
(@etiger13)
14 years, 10 months ago
Its because you arent using an operator, you are checking to see if the category was assigned. This is what you should be doing:
$category = get_the_category(); if ( $category[0]->cat_ID == 3 ) { soSomething(); }