WordPress.org

Forums

How to display category parent and child names... (2 posts)

  1. gianni-propeller
    Member
    Posted 8 years ago #

    In a category.php template file. I want to display the title for a selected category like:

    If the category is a parent<h1>tparent cat</h1> but if the category is a child of a parent then display like <h1>Parent Cat / Child Cat</h1>

    I have been fiddling with the examples from the wordpress wiki... but dont know enough about the tags and the conditions to get this work...

    Please help.

  2. gianni-propeller
    Member
    Posted 8 years ago #

    ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags