• Resolved willowen100

    (@willowen100)


    Hi

    I know in core WordPress you can add both categories and tags simultaneously to a post. How do I achieve this using CPT UI? Doesn’t the hierarchy setting just set one or the other?

    Many thanks

    Will

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

    (@tw2113)

    The BenchPresser

    You would need to assign two taxonomies to it.

    For the WP core items, the “category” taxonomy is hierarchical, and the “post_tags” taxonomy is non-hierarchical. You would need to create 2 separate ones much like that, to get the “category” and “tag” like metaboxes.

    Thread Starter willowen100

    (@willowen100)

    Hi Michael

    User thomasgardner47 is my friend I’m working on our website with. We had a think about the matching slug and we’ve decided to append numbers at the end.

    If I make another taxonomy to have for tags what could I use for the slug so I don’t get confused what taxonomy is what?

    The only thing I can think of is appending ‘C’ and ‘T’ at after the taxonomy so the URL/slug becomes the following:-

    domain.com/food/sandwiches_C
    domain.com/food/sandwiches_T

    Kind regards

    Will

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly, that’s really a decision up to you on how to name them. Nothing that is dictated by CPTUI itself.

    I am a little curious about the content “design” and sandwiches are needing to be both styles. At least in my mind, it’d work better as a category for that parent/child relationship. Perhaps for named sandwiches like the “Reuben”, or “Ham and turkey”, etc. A tag-style taxonomy could be used simply for the toppings, like “ham”, “turkey”, “mustard”.

    Something to consider.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to have categories and tags at the same time on taxonomies?’ is closed to new replies.