Is there a way to make a header tag display a category and subcategory together, instead of just a single category?
h2><?php _e(‘Vacation Rental Listings in’,’cp’)?> <?php single_cat_title(); ?>, NC (<?php echo $wp_query->found_posts ?>)</h2>
The above displays as “Vacation Rental Listings in (Subcategory), NC”
I need it to display as “Vacation Rental Listings in (Parent Category), NC”
Any direction you can provide would be greatly appreciated! =)
- The topic ‘Get Parent Category?’ is closed to new replies.