Support » Themes and Templates » Custom taxonomy>term>child terms page template?

  • Is there a way to create a page template that applies to all child terms in a custom taxonomy? I’ve added custom metadata to my custom taxonomy, and I want to be able to see these fields when I click on a child-term’s link.

    taxonomy: reporter
    term: 2011-2012
    child-terms: (reporters names)

    I want to be able to display information about reporters in a certain way when I’m viewing that slug (bio, pic, list of posts).

Viewing 1 replies (of 1 total)
  • On second thought, I’ll just try adding some kind of if statement in the archive.php file.

    if (is_tax('reporter')) {
    reporter loop
    else {
    normal loop

    That should work, right? I’m still new to WordPress and PHP. Looking at the template hierarchy, it looks like taxonomy template pages only work for archives and individual terms. I was hoping to get one template to apply to a set of child terms.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomy>term>child terms page template?’ is closed to new replies.