WordPress.org

Support

Support » Plugins and Hacks » How to show parent catregory title on sub category page ?

How to show parent catregory title on sub category page ?

  • davidjs

    @davidjs

    Im trying to figure out the code to show the top level parent category title on sub category pages. In my design I need to show the current category being viewed and the top parent category title. This is like a bread crumb but the two titles go in very different places in my design.

    If Im viewing Category 1 > sub cat 1 > sub cat 2 then I would like to display two tiles on this category page – Category 1 and sub cat 2

    If Im viewing a product inside sub cat 2, then its the same thing only my page will also show the product title.

    http://wordpress.org/plugins/woocommerce/

  • The topic ‘How to show parent catregory title on sub category page ?’ is closed to new replies.