Skip to content

Instantly share code, notes, and snippets.

@saltcod
Created April 30, 2012 18:39
Show Gist options
  • Save saltcod/2560934 to your computer and use it in GitHub Desktop.
Save saltcod/2560934 to your computer and use it in GitHub Desktop.
Lets say I'm looking at cars:
Cars
— Subaru
— — Legacy
— — Imprezza
— Ford
— — Fiesta
— — Taurus
By default, taxonomy-cars-subaru.php will output this:
Legacy
Imprezza
All I want to do is output the parent:
— Subaru
— — Legacy
— — Imprezza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment