Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Custom Taxonomies and Post Types Re: Custom Taxonomies and Post Types

#80286

No, I’m sorry for not being clear. I want to create a template php file that applies to all of my taxonomy categories. So my questions are:

1. How can I create three loops that go through each post type?

2. How do I assign that file to all of my categories in my taxanomy? (I would assume through funtions.php somehow???)

3. I want to create it like so:

taxanomy-name.php:

if( taxonomy root – mydomain.com/custom-taxonomy/ ) {
show category link buttons
} elseif ( taxonomy category – mydomain.com/custom-taxonomy/tax-category-[01,02,03,04,05] ) {
loop for first post type
loop for second post type
loop for third post type
}

Does that make sense?

Thanks.