Excluding a category
-
hi to everyone
im running a digital magazine, and above the post title im adding a line for the reader to know on which category is that post.. right now it looks this way:
Featured, Fitness
POST TITLEI would like to avoid showing FEATURED or MAIN ARTICLE in that line. So far I’m using:
<?php $category = get_the_category(); echo $category[1]->cat_name; ?>
But i dont think that this code is what I need. Also, I don’t know how to link the Category name to that specific category. So finally I would only like to show:
Fitness (linked to fitness category)
POST TITLEinstead of
Featured (linked to this cat), Fitness (linked to this cat)
POST TITLEProbably this has been resolved before but im not good at tweaking wordpress codes
Thank you very much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Excluding a category’ is closed to new replies.