• Resolved FadingMusic

    (@fadingmusic)


    I’m building an artists website and I need to be able to distinguish custom post types like Reviews, Interviews, News, etc.

    Is this somehow possible using just one taxonomy, or do I need to create different taxonomies for each post type with the same content?

    My guess is that all custom post types using one taxonomy will be mixed together, but I was hoping there’s some kind of wordpress magic. 😉

    Thanks in advance.

    https://ww.wp.xz.cn/plugins/custom-post-type-ui/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    You should be able to use the same taxonomy for multiple post types, and if you’re starting this on WordPress 4.1, then the terms should be separated out by default since I know there’s a lot of term taxonomy work going on in the backend. Gone will be the days of shared terms between post types.

    stefan sk

    (@stefan-sk)

    i’m not sure to well understand, but, if i have ONE taxonommy (eg.event_type) shared by 2 CPT (eg.events,locations), is it possible to display taxonomy for events and for Locations by using only ONE taxonomy template ? And how to filter it before display ?
    thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    A file named taxonomy-$taxonomy.php should get you a specific file for the taxonomy. Just replace $taxonomy with the actual taxonomy slug you’re using.

    You’d want to look into the pre_get_posts filter and some conditional tags to customize beyond that.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Taxonomy on multiple post types’ is closed to new replies.