For standard posts my theme automatically displays the terms I added for Categories and displays these after the_content();
on the front end, where I click a term and it goes to a page listing all posts that use the term.
So I set up a custom post type with a custom taxonomy assigned to it. But unlike standard posts my theme does not display the category terms for them. So I add a snippet I found (where Genres is the taxonomy name):
the_terms( $post->ID, 'genres', 'Genres: ', ', ', '
' );
This shows the terms for me to click on the front end for the CPT. When I do the result is a page not found rather than an archive page for terms as for a standard post.
Is it essential to add a taxonomy.php
template file to child theme or is the problem the snippet? I thought wordpress uses archive.php
automatically or is that only for regular posts associated with default categories?
I tried adding a taxonomy.php
to my child theme (based on code from archive.php
) but it's got get_template_part
with called in files so could be doing something wrong. Before I check with the theme provider on specifics I wanted to establish some basics.
Also I don't have an archive.php
in my child theme but there's one in the parent theme folder is this ok.
thanks!