Display certain post categories under post title
-
Hi, I found a bit of code via the search on the forums here, but its not quite how I hoped. Im using this:
<?php $category = get_the_category(); if($category[0]){ echo '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>'; } ?>
Which only displays the first category.
Im hoping some php/wordpress wizard could help me do the following:
1) Display all categories, apart from one (This because the theme requires all posts to have part of feature (so they appear on the home page).
2) Format them like [Movies}[TV] etcI did try the codex thing, struggled to get this far would really appreciate some advice!
Thanks in advance
- The topic ‘Display certain post categories under post title’ is closed to new replies.