need parent category dispalyed in list
Can anyone please help me a little.
how do I call the parent category for ads in list.
I would like it to be clickable like the sub cat.
I can see in loop-ad.php how the sub cat is called. but I really need the parent one too.
<?php if (get_the_category()) the_category(', '); else echo get_the_term_list($post->ID, 'ad_cat', '', ', ', ''); ?>
See the attached image for more info.