Site logo

[Support request] Template file name for Category under Custom Post Type

Home Forums Support [Support request] Template file name for Category under Custom Post Type

Home Forums Support Template file name for Category under Custom Post Type

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #332136
    naisyo523

    Hi, love GeneratePress!

    I’ve created a Custom Post Type called “Events”. Under Events, I have 3 different categories (Workshops, Support Groups, and Webinars)

    Right now these category’s index pages are displayed using “archive.php” and “content.php”. But I’d like to use a custom template (because I want them to act differently than archive.php and content.php).

    What file name I should use for it to work?

    Thanks in advance!

    E

    #332207
    Tom
    Lead Developer
    Lead Developer
    #332524
    naisyo523

    Hi Tom, my Generatepress does not seem to choose the template file I created to display category page under my custom post types. It currently uses archive.php instead of using category-workshop.php. So my question is how can I make the Generatepress to use template name category-workshop.php according to their Taxonomy Template Hierarchy https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/ I thought they automatically picks up the right file as long as it fits their hierarchy. I physically made file called category-workshop.php but it still choose archive.php instead.

    Thank you!

    #332694
    Tom
    Lead Developer
    Lead Developer

    I’m assuming workshop is the exact post type name? And it’s a category?

    Maybe try taxonomy-workshop.php or archive-workshop.php.

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