• Resolved andyganesh

    (@andyganesh)


    How can I create custom taxonomy which is a custom post type at the same time?

    Now I have the custom post type Events. One of its taxonomies is Speakers. But I want Speakers to be a custom post type at the same time. Because I need to build single page and pop-up templates with dynamic terms that refer to Speakers.

    In other words, I want to create a custom post type, that can act like a taxonomy of other post type.

    There is the taxonomy tree, that I need to get:

    Event (cpt)
    – Day
    – Month
    – Weekday
    – Venue
    – Time
    – Project
    – Event Type
    – Description
    – Speaker (cpt)
    – Name
    – Surname
    – Education
    – Description

Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @andyganesh

    This is simply not possible with WordPress. Taxonomies and CPT’s are simply very different object types.
    Also, keep in mind that every term has it’s own page as well.

    In your case I’d say Speakers should indeed be a CPT, not a taxonomy.
    You can relate speakers to your events through a relationship field.
    This would then be stores as metadata instead of a term link.

    Cheers, Jory

Viewing 1 replies (of 1 total)

The topic ‘Taxonomy as a post type’ is closed to new replies.