I know I've done something stupid with PHP but I just can't get this to work.
<?php if (is_category('this')) { ?>
DO THIS
<?php } elseif (is_category('that')) { ?>
DO THAT
<?php } else { } ?>
This is always returning DO THIS no matter which category the post is in. And no matter whether I try ID numbers or the category slug.
This is within a loop that is only showing the first post of one of two categories. It starts like this:
<?php query_posts('showposts=1&cat=3,5');?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Any ideas what I'm doing wrong?