logantscott
Member
Posted 1 year ago #
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).
logantscott
Member
Posted 1 year ago #
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.