Archived topic
Category Archive CPT GeneratePress
9 replies · Started by Daniel Moreno Cuerda on September 6, 2022
Hi!
I have created a CPT called programas and I wanted to edit the template of the general archive and the category archive. I created a file called archive-programas.php and it works correctly. However, for the category of that CPT called idiomas, I created the file taxonomy-idiomas.php and it does not work despite following the documentation. What is the problem?
Thank you very much for your help.
Hi Daniel,
To clarify, were you able to set has_archive of the CPT to true?: https://developer.wordpress.org/reference/functions/register_post_type/#has_archive
Yes, I created the CPT with the Custom Post Type UI plugin and selected that option.
I see. How about the custom taxonomy, how did you create it?
I created them with the plugin as well. I attach two screenshots.

The language site is Spanish. Categoría is category and Etiquetas is tag.
Thank you so much for your attention.
Hi there,
try regenerating the site permalinks by going to Settings > Permalinks and clicking Save Changes
Hi!
Still not working, even though I have updated the permalinks. I don't know which is the problem.
Can you check with CPT UI ? There may be an option in there plugin that needs enabling
I know the source of the problem. A taxonomy had been created with the CPT called categoria (category in English) and that's why the CPT templates didn't work.
Thank you very much for your help
Glad to hear you found the problem!