Support » Fixing WordPress » Get Parent Category?

  • Pete White

    (@webworkers)


    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! =)

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get Parent Category?’ is closed to new replies.