Category Naming for Multiple Custom Post Types

Support MB Custom Post Type Category Naming for Multiple Custom Post Types

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44067
    Charlie BarksCharlie Barks
    Participant

    Looking for some suggestions on naming categories for multiple CPT's. I am attempting my first build using Metabox for a Local Business Directory. I have three CPT's and they are Businesses, Restaurants and Places. I would like to have separate categories for each but it just feels like /restaurant-category/ or /business-category/ etc is too long. Since I am new to using Metabox there may be other options that I am not aware of such as maybe relationships or conditional logic that can be used to avoid these long category names.

    I appreciate suggestions or examples. If this is in the wrong forum section please let me know. Thanks for your help.

    #44072
    PeterPeter
    Moderator

    Hello Charlie,

    You can add whatever you want to create the taxonomy slug, but it should be unique and follow the guide of WordPress https://developer.wordpress.org/reference/functions/register_taxonomy/
    and not match the reserved terms https://codex.wordpress.org/Reserved_Terms

    Also, please notice that, MB Custom Post Types helps you to create the post type with UI instead of using the code register_post_type(), register_taxonomy(). You can read the WordPress documentation for more information.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.