CPT-onomies: Using Custom Post Types as Taxonomies
[resolved] specific categories assigned to a specific post type (2 posts)

  1. belpha
    Posted 3 years ago #

    Hello, I'm quite new to wordpress, so I need help with this wonderful plug in.

    I would like to know if there is a way to assign specific categories to a post type only.
    For example: post type "releases" categories "series A, series B, series C", post type "gigs" categories "group 1, group 2, group 3".
    I want "series x" to be shown only on "releases" and "group x" only on "gigs".

    How can I do?



  2. Rachel Carden
    Plugin Author

    Posted 3 years ago #

    If your categories would benefit from being custom post types, i.e. you want to store data for each category, then this is where CPT-onomies come to call. You'll have to give each set of categories a unique name, like "series_categories" and "group_categories", and create post types for them in the CPT-onomies admin area. Then, in the "Register this Custom Post Type as a CPT-onomy" section, you can attach each category to its corresponding custom post type to create your CPT-onomy.

    If your categories don't need to be custom post types, i.e. you just need the term and that's all the info you need for each category, then you just need plain ole taxonomies. You still need to give each category a unique name so you can separate them out, register the taxonomies and attach it to its corresponding custom post type.

    The code is pretty simple to register a taxonomy, but there are also a few plugins that will help you out if needed.

    Check out the codex for more information on taxonomies.

    I hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.