• Resolved scooby

    (@scooby)


    I have this small condition and I can’t seem to get it working:

    <?php if ( is_category('3') ) { ?>
    	do something
    <?php } else { ?>
    	do something else
    <?php } ?>

    The code is being used in “single.php”

    Is there other ways to write this that could work better??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Condition not working??’ is closed to new replies.