Is this code correct?
-
I looked for a methods to exclude a category ID from the_category() but didn’t find a code that works properly. So instead of the_category tag I’m trying to use “get the category”
I tried
<?php $category = get_the_category(); echo $exclude = array(10); ?>
but that outputs the text “array”
not sure what to modify if is this is even possible.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Is this code correct?’ is closed to new replies.