Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Archive template for CPT?

  • Not sure what I’m doing wrong but I made a Loop Template for a CPT that works great. But I also set the location for CPT category archives too and those archives are empty. The categories are the default WP post categories, which have been added to the CPT w/ ACF.

    Is it not possible to use a loop template for a category archive that might show different post types?

  • Hi there,

    do the CPT archives show any posts without the Loop Template ?

  • They do not, the only category that shows anything is the one with the default ‘Hello World’ post. Do I need to make a custom taxonomy?

  • Is the CPT Archive enabled in your CPT configuration?

  • Yes. The Loop template works great for the main CPT archive but not for the CPT category archives.

  • I think you need custom taxonomy, as the default category archive shows posts only.

    Or do you want to show both posts and CPT on the category archive?

  • I’d like to show 2 CPTs in the category, rather than posts.

  • If you’re using Query Loop on the CPT category archives, you can include more than one post type in the query loop. See David’s reply here:

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