Support » Fixing WordPress » Conditional is_category in attachment.php

  • Hi,

    I can’t get the following to work – does attachment.php accept conditional tags?

    <?php if (in_category(‘3’)) { ?>
    CAT 3!
    <?php } else {?>
    NOT CAT 3
    <?php } ?>

    thanks,

    R

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional is_category in attachment.php’ is closed to new replies.