• Resolved lottieb

    (@lottieb)


    Can you please explain the differences between “Add support for available registered taxonomies” on the Edit Post Types screen vs “Attach to Post Type” on the Edit Taxonomies screen?

    If I have a post type Resource and I want to use a custom taxonomy with it called Research, which should I do: add Research taxonomy support on the Edit Post Types screen CPT UI or attach the post type Resource to the Research Taxonomy on the Edit Taxonomies screen?

    When should I use “add support” and when should I use “attach”? And is there a use case where I should use both?

    I appreciate your help.

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

    (@tw2113)

    The BenchPresser

    Good day,

    It really kind of depends on who’s providing each, since we don’t just list post types and taxonomies created with CPTUI.

    When it comes to a taxonomy you’re registering with our plugin, I’d say use the “attach to post type” setting to set the post type a taxonomy belongs to, since WordPress requires each taxonomy to be associated with something. You can have post types without taxonomies, you can’t have taxonomies without post types.

    For your specific example, to go along with what I initially say above, I’d have the “research” taxonomy list itself as a taxonomy for your “resource” post type.

    Regarding differences at a deeper level, not really any that I’m personally aware of. Just a parameter to bind things together during the registration process for your content types. I don’t believe there’s any harm in specifying both.

Viewing 1 replies (of 1 total)
  • The topic ‘Difference between Taxonomy support on Post Type vs Attach Post Type to Taxonomy’ is closed to new replies.