Support » Everything else WordPress » Categories for custom post types

  • Resolved kevinbrands


    At the moment I’m developing a website with multiple custom post types like ‘Vacancies’ and ‘Masterpieces’. Besides the CPT’s I also use the normal posts.

    I’m using some categories on the CPT’s as well as on the posts. A category like ‘Government’ or ‘Owners’ can be used on any CPT or on the posts.

    Is it possible to make different archives for each of the CPT’s besides the arhives for the normal posts? Something like [url].com/masterpieces/owners to show the CPT posts of ‘Masterpieces’, labelled with ‘Owners’.

    Many thanks! Greetings,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Probably you have already searched here:
    First answer would be: make a new template in your theme for the specific post type, but, as stated in the link above: “In order to avoid breaking a site on theme switching, try to define custom post types as a plugin, or, better as a Must Use Plugins. This way you won’t force users into using a certain theme. “
    So we can imagine a plugin that builds the query so to filter the CPT + additional categories.
    Take a look in the plugin repository, I’m sure you will find yours.

    Thanks for your reply Andy.

    I’ve found another solution for this. I’ve made custom taxonomies for each post type, that’s a lot easier and more clear for the user.

    Thanks anyway!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Categories for custom post types’ is closed to new replies.