Using the gategory ID in php If statements.
-
Does anyone know how I can use the category ID of a post in an if statement without displaying the category ID itself.
<?php if (the_category_ID() == 1){ ?>
works as an if statement but it also displays the category ID above each post. Anyone know a way around this?
Thanks,
– Jim.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using the gategory ID in php If statements.’ is closed to new replies.