after several hours of testing and development I need your help.
I’ve created a taxonomy with several (free) terms. After that I’ve created the page and sub pages for displaying the taxonomy, following the scheme from WordPress.
Following the hierarchy I need to create a page like taxonmy-{taxonomy}-{term}.php for every single term within my taxonomy. I need that subpages for a filter option.
Is there a way to create that subpages dynamically? The user creates terms by himself and I have no clue how they will be named.
Thanks for help.
See this solution which hooks into the ‘template_include()’ filter. You’ll check your specific taxonomy and redirect the $template at the end
I tend to write it like this, but generally @emeraldjava has it right