echo subcategory problem
-
Hi folks!
I’m having a problem to display certain subcategory
currently using this function.<?php $category = get_the_category(); echo $category[1]->cat_name; ?>
The problem is that some of the subcategories are displayed as parent category name. In other subcategories there is no problem.
Can anyone help me?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘echo subcategory problem’ is closed to new replies.