This is really annoying me now and I can't find an answer that has actually worked anywhere on the internet.
You'll need to be familiar with Wordpress to understand.
On my website, basically I have a single page theme which displays a single post. The single post has multiple parent and child categories.
I can display all categories using
the_category(' ');
The post uses a registered custom taxonomy of wpecbd
and I am trying to display ONLY the CHILD categories for that post. Can anyone help?
If you need a better understanding, basically each single post is a listing in a business directory.
The category format is
-A
-- Air Conditioning
-- Child
-- Child
-B
-- Builders
-- Child
-- Child
-C
-- Child
-- Child
The post can have multiple categories such as Air Conditioning
and Builders
which would fall under A
and B
respectively. I only want to show the child as I have no interest in displaying the parent (A/B).
I dont want to use wp_list_categories()
either as I want them displayed inline
Can anybody help?