Support » Plugin: Custom Post Type UI » No Category Option When Creating Post.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you share your settings for your post types, from the Tools section?

    Not managing to recreate at the moment, but I’m going to have a different config for the post type than you do.

    I hope it’s OK that I piggy-back here. I’ve got the same issue. There’s a single CPT that I created in CPT-UI, and custom taxonomies for that CPT, also created in CPT-UI.

    Post Types Settings
    {"recipe":{"name":"recipe","label":"Recipes","singular_label":"Recipe","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","excerpt","trackbacks","comments","author"],"taxonomies":["recipe_category","ingredient","attribute"],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":""},"custom_supports":""}}

    Taxonomy Settings
    {"recipe_category":{"name":"recipe_category","label":"Recipe Categories","singular_label":"Recipe Category","description":"","public":"true","publicly_queryable":"true","hierarchical":"true","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"category","rewrite_withfront":"1","rewrite_hierarchical":"1","show_admin_column":"false","show_in_rest":"false","show_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"","all_items":"","edit_item":"","view_item":"","update_item":"","add_new_item":"","new_item_name":"","parent_item":"","parent_item_colon":"","search_items":"","popular_items":"","separate_items_with_commas":"","add_or_remove_items":"","choose_from_most_used":"","not_found":"","no_terms":"","items_list_navigation":"","items_list":""},"meta_box_cb":"","object_types":["recipe"]},"ingredient":{"name":"ingredient","label":"Ingredients","singular_label":"Ingredient","description":"Trying to use up the last of something? Need to satisfy your craving for something? Use this list to find all recipes that use a specific ingredient.","public":"true","publicly_queryable":"true","hierarchical":"false","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"","rewrite_withfront":"1","rewrite_hierarchical":"0","show_admin_column":"false","show_in_rest":"false","show_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"","all_items":"","edit_item":"","view_item":"","update_item":"","add_new_item":"","new_item_name":"","parent_item":"","parent_item_colon":"","search_items":"","popular_items":"","separate_items_with_commas":"","add_or_remove_items":"","choose_from_most_used":"","not_found":"","no_terms":"","items_list_navigation":"","items_list":""},"meta_box_cb":"","object_types":["recipe"]},"attribute":{"name":"attribute","label":"Recipe Attributes","singular_label":"Recipe Attribute","description":"","public":"true","publicly_queryable":"true","hierarchical":"true","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"","rewrite_withfront":"0","rewrite_hierarchical":"0","show_admin_column":"false","show_in_rest":"false","show_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"","all_items":"","edit_item":"","view_item":"","update_item":"","add_new_item":"","new_item_name":"","parent_item":"","parent_item_colon":"","search_items":"","popular_items":"","separate_items_with_commas":"","add_or_remove_items":"","choose_from_most_used":"","not_found":"","no_terms":"","items_list_navigation":"","items_list":""},"meta_box_cb":"","object_types":["recipe"]}}

    Thank you for your help and your work on the plugin.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    @stuporglue make sure all your taxonomies have “show in rest” set to true.

    @chudz assuming your “category” is also a custom taxonomy, and not WordPress core “category” taxonomy, make sure that that setting is set to true as well.

    As part of 1.6.0 we made that setting default to true for new post types, and 1.6.1 did the same for new taxonomies. However, we didn’t retroactively change that setting for already created post types and taxonomies.

    @tw2113

    Upgraded to 5.0. No custom taxonomies in sight. Changed the settings for rest to true.

    The custom taxonomies showed up.

    Thanks!

    That did it. Thank you @tw2113!

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m likely going to make a sticky thread about this topic, because I foresee a lot of potential incoming questions regarding it.

    Yup, I’ve got this problem.

    No categories visible. https://textango.co

    Not sure what this means:

    taxonomies have “show in rest” set to true

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    @happyseaurchin if you’re looking for some custom taxonomies that you’ve set up, that aren’t showing up, you’ll want to go edit the taxonomies in CPTUI. Specifically, there should be a “Show In Rest” option/dropdown that has either “true” or “false” for options. you’d want to set that dropdown to true and then save the settings.

    After that, the taxonomy should start showing up with Gutenberg editor again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No Category Option When Creating Post.’ is closed to new replies.