Archived topic
Adding custom taxonomy in the generate_do_template_part
1 reply · Started by tobymiguel on December 11, 2020
Hi
I have a custom taxonomy, I want to display this custom "category" the same way as categories and tags in the archive pages.
How can I do this?
When I open the theme template for archive I can see that the following function is used:
generate_do_template_part( 'archive' );
Hi there,
This should happen automatically. If no custom taxonomy archive file exists, it will fall back to archive.php and index.php: https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/#custom-taxonomy