In My wodpress Blog there are some categories use for the internal work. I want to hide that categories in blog homepage category list show under each post.
I print category list as print(the_category($postID));
How to hide or make filter for that category list print under each post?
I’m afraid that in this case you will have to go throught the categories and have some logic here.
you can use a function like this one:
It will trancate the categores you want without the excluded as links seperated by what ever you want (in this case “|”)
You can call it within your loop:
$categories array will be the array of categories objects what you can then display as:
I haven’t tested it, but it should work.
To get the excluded categories you can use a parent category called “excluded” or something like that. than they can be available for you easily:
Hope it helps.