WordPress.org

Support

Support » Themes and Templates » How to display category parent and child names…

How to display category parent and child names…

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to display category parent and child names…’ is closed to new replies.
Skip to toolbar