• I two types of data, categories and listings (custom post type)

    the nav happens like this, go to a list all level 1 categories page => click a category => get taken to that categories page with listing of all categories and with current category children listed as well. This sub page also lists all listings available in that cat. Once you click on a listing you are taken to a new url. Instead of category/category_name its listing/listing_name

    I am using: <?php wp_list_categories(‘depth=2&exclude=1,13&hide_empty=0&title_li=&current_category=’. NEED TO GET CURRENT CATEGORY ?>

    Also I would prefer that it works so that it shows the top level category as .current-cat not the child categories for which the listing can be associated.

    thoughts?

  • The topic ‘get current category outside the loop for a single-customposttype.php’ is closed to new replies.