[Support request] Category Archive CPT GeneratePress

Home Forums Support [Support request] Category Archive CPT GeneratePress

Home Forums Support Category Archive CPT GeneratePress

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2334484
    Daniel Moreno Cuerda

    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.

    #2334503
    Fernando
    Customer Support

    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

    #2334512
    Daniel Moreno Cuerda

    Yes, I created the CPT with the Custom Post Type UI plugin and selected that option.

    #2334540
    Fernando
    Customer Support

    I see. How about the custom taxonomy, how did you create it?

    #2334565
    Daniel Moreno Cuerda

    I created them with the plugin as well. I attach two screenshots. Screenshot 2 Screenshot

    The language site is Spanish. Categoría is category and Etiquetas is tag.

    Thank you so much for your attention.

    #2334600
    David
    Staff
    Customer Support

    Hi there,

    try regenerating the site permalinks by going to Settings > Permalinks and clicking Save Changes

    #2334607
    Daniel Moreno Cuerda

    Hi!

    Still not working, even though I have updated the permalinks. I don’t know which is the problem.

    #2334707
    David
    Staff
    Customer Support

    Can you check with CPT UI ? There may be an option in there plugin that needs enabling

    #2335576
    Daniel Moreno Cuerda

    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

    #2335624
    David
    Staff
    Customer Support

    Glad to hear you found the problem!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.