Hide category title in posts??
I am using the default ‘the_category’ & ‘wp_list_cats’ to display the categories used for my posts on both each individual post and the sidebar.
What I would like to do is be able to add a category or number of categories to certain posts but not have that category displayed at all on the page.
I can get round this on the sidebar using the exclude argument on the wp_list_cats tag but I can’t find a way to hide the category from displaying with the post.
I could possibly do it by using an if and then formatting the categories to be hidden to the same color text as the bacground but that would create a lot of whitespace.
Anyone got any ideas or could point me in the right direction please?
And just to clarify, I do not want to hide the actual post, just the category.
- The topic ‘Hide category title in posts??’ is closed to new replies.