CPT UI taxonomy checkbox missing in block editor. But shows w.Classic Editor
-
I am using WordPress v. 6.8 with CPT UI plugin and Kadence Theme.
I have created a custom taxonomy and a custom post type using CPT UI plugin. Taxonomy is set as hierarchical. Both CPT and taxonomy are tied to each other. Both have show_in_REST set to true. Terms created in taxonomy are comprised of one category and several subcategories in parent-child relationship.
Yet when I create a post of the custom post type, on the add post page, on the right hand side, I see the name of the taxonomy but instead of a hierarchical checkboxes of taxonomy terms, I just see a link labeled “Add new my taxonomy”. When I click on it, a text box appears.
When I install and activate the Classic Editor plugin, on the same add/edit form the taxonomy hierarchy with the taxonomy terms that I had previously defined are displayed neatly as check boxes.
That makes me think problem is with the default Gutenberg block editor of WordPress. But why? What am I doing wrong?
I really appreciate any help.
Best Regards
-
This topic was modified 1 year, 3 months ago by
saksaksak.
-
This topic was modified 1 year, 3 months ago by
-
Can you visit the
CPTUI Menu > Toolsand paste both blobs of text on the right hand side, for both the “Post Types” tab as well as the “Taxonomies” tab?That’ll allow me to import your registered settings and see if I can recreate.
Also, just in case it’s a factor, did you recently move these content types to CPTUI? or are these all brand new? Asking this because if the original registration code is still being used elsewhere, that may be overriding the settings from CPTUI’s version.
Hi,
Thank you for your kind reply.
Below is the requested text for the custom post types and the custom taxonomies. Please kindly note that these are all brand new definitions. I am trying to get acquainted with custom post types and custom taxonomies and I have created this word press installation for that.
Thanks again.
{“tunnel_boring_tbm”:{“name”:”tunnel_boring_tbm”,”label”:”Tunnel Boring Machines – TBM”,”singular_label”:”Tunnel Boring Machine – TBM”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”has_archive”:”false”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”can_export”:”false”,”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”:null,”register_meta_box_cb”:null,”supports”:[“title”,”editor”,”thumbnail”],”taxonomies”:[“tbm_supplies”],”labels”:{“menu_name”:”Tunnel Boring Machines – TBM”,”all_items”:”All Tunnel Boring Machines – TBM”,”add_new”:”Add new”,”add_new_item”:”Add new Tunnel Boring Machine – TBM”,”edit_item”:”Edit Tunnel Boring Machine – TBM”,”new_item”:”New Tunnel Boring Machine – TBM”,”view_item”:”View Tunnel Boring Machine – TBM”,”view_items”:”View Tunnel Boring Machines – TBM”,”search_items”:”Search Tunnel Boring Machines – TBM”,”not_found”:”No Tunnel Boring Machines – TBM found”,”not_found_in_trash”:”No Tunnel Boring Machines – TBM found in trash”,”parent”:”Parent Tunnel Boring Machine – TBM:”,”featured_image”:”Featured image for this Tunnel Boring Machine – TBM”,”set_featured_image”:”Set featured image for this Tunnel Boring Machine – TBM”,”remove_featured_image”:”Remove featured image for this Tunnel Boring Machine – TBM”,”use_featured_image”:”Use as featured image for this Tunnel Boring Machine – TBM”,”archives”:”Tunnel Boring Machine – TBM archives”,”insert_into_item”:”Insert into Tunnel Boring Machine – TBM”,”uploaded_to_this_item”:”Upload to this Tunnel Boring Machine – TBM”,”filter_items_list”:”Filter Tunnel Boring Machines – TBM list”,”items_list_navigation”:”Tunnel Boring Machines – TBM list navigation”,”items_list”:”Tunnel Boring Machines – TBM list”,”attributes”:”Tunnel Boring Machines – TBM attributes”,”name_admin_bar”:”Tunnel Boring Machine – TBM”,”item_published”:”Tunnel Boring Machine – TBM published”,”item_published_privately”:”Tunnel Boring Machine – TBM published privately.”,”item_reverted_to_draft”:”Tunnel Boring Machine – TBM reverted to draft.”,”item_trashed”:”Tunnel Boring Machine – TBM trashed.”,”item_scheduled”:”Tunnel Boring Machine – TBM scheduled”,”item_updated”:”Tunnel Boring Machine – TBM updated.”,”parent_item_colon”:”Parent Tunnel Boring Machine – TBM:”},”custom_supports”:””,”enter_title_here”:”Add Tunnel Boring Machine – TBM”},”tbm_supplies”:{“name”:”tbm_supplies”,”label”:”TBM Supplies”,”singular_label”:”TBM Supply”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”true”,”can_export”:”false”,”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”:null,”register_meta_box_cb”:null,”supports”:[“title”,”editor”,”thumbnail”,”page-attributes”],”taxonomies”:[“tbm_supplies”],”labels”:{“menu_name”:”TBM Supplies”,”all_items”:”All TBM Supplies”,”add_new”:”Add new”,”add_new_item”:”Add new TBM Supply”,”edit_item”:”Edit TBM Supply”,”new_item”:”New TBM Supply”,”view_item”:”View TBM Supply”,”view_items”:”View TBM Supplies”,”search_items”:”Search TBM Supplies”,”not_found”:”No TBM Supplies found”,”not_found_in_trash”:”No TBM Supplies found in trash”,”parent”:”Parent TBM Supply:”,”featured_image”:”Featured image for this TBM Supply”,”set_featured_image”:”Set featured image for this TBM Supply”,”remove_featured_image”:”Remove featured image for this TBM Supply”,”use_featured_image”:”Use as featured image for this TBM Supply”,”archives”:”TBM Supply archives”,”insert_into_item”:”Insert into TBM Supply”,”uploaded_to_this_item”:”Upload to this TBM Supply”,”filter_items_list”:”Filter TBM Supplies list”,”items_list_navigation”:”TBM Supplies list navigation”,”items_list”:”TBM Supplies list”,”attributes”:”TBM Supplies attributes”,”name_admin_bar”:”TBM Supply”,”item_published”:”TBM Supply published”,”item_published_privately”:”TBM Supply published privately.”,”item_reverted_to_draft”:”TBM Supply reverted to draft.”,”item_trashed”:”TBM Supply trashed.”,”item_scheduled”:”TBM Supply scheduled”,”item_updated”:”TBM Supply updated.”,”parent_item_colon”:”Parent TBM Supply:”},”custom_supports”:””,”enter_title_here”:”Add TBM Supply”}}
{“tunnel_boring_machines_tbm”:{“name”:”tunnel_boring_machines_tbm”,”label”:”Tax Tunnel Boring Machines TBM”,”singular_label”:”Tax Tunnel Boring Machine TBM”,”description”:”Tunnel Boring Machines (TBM)”,”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”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_tagcloud”:”false”,”sort”:”false”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”labels”:{“menu_name”:”Tax Tunnel Boring Machines TBM”,”all_items”:”All Tax Tunnel Boring Machines TBM”,”edit_item”:”Edit Tax Tunnel Boring Machine TBM”,”view_item”:”View Tax Tunnel Boring Machine TBM”,”update_item”:”Update Tax Tunnel Boring Machine TBM name”,”add_new_item”:”Add new Tax Tunnel Boring Machine TBM”,”new_item_name”:”New Tax Tunnel Boring Machine TBM name”,”parent_item”:”Parent Tax Tunnel Boring Machine TBM”,”parent_item_colon”:”Parent Tax Tunnel Boring Machine TBM:”,”search_items”:”Search Tax Tunnel Boring Machines TBM”,”popular_items”:”Popular Tax Tunnel Boring Machines TBM”,”separate_items_with_commas”:”Separate Tax Tunnel Boring Machines TBM with commas”,”add_or_remove_items”:”Add or remove Tax Tunnel Boring Machines TBM”,”choose_from_most_used”:”Choose from the most used Tax Tunnel Boring Machines TBM”,”not_found”:”No Tax Tunnel Boring Machines TBM found”,”no_terms”:”No Tax Tunnel Boring Machines TBM”,”items_list_navigation”:”Tax Tunnel Boring Machines TBM list navigation”,”items_list”:”Tax Tunnel Boring Machines TBM list”,”back_to_items”:”Back to Tax Tunnel Boring Machines TBM”,”name_field_description”:”The name is how it appears on your site.”,”parent_field_description”:”Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.”,”slug_field_description”:”The slug is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.”,”desc_field_description”:”The description is not prominent by default; however, some themes may show it.”},”meta_box_cb”:””,”default_term”:””,”object_types”:[“tunnel_boring_tbm”]},”tbm_supplies”:{“name”:”tbm_supplies”,”label”:”Tax TBM Supplies”,”singular_label”:”Tax TBM Supply”,”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”:”1″,”rewrite_hierarchical”:”0″,”show_admin_column”:”false”,”show_in_rest”:”true”,”show_tagcloud”:”false”,”sort”:”false”,”show_in_quick_edit”:”true”,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”labels”:{“menu_name”:”Tax TBM Supplies”,”all_items”:”All Tax TBM Supplies”,”edit_item”:”Edit Tax TBM Supply”,”view_item”:”View Tax TBM Supply”,”update_item”:”Update Tax TBM Supply name”,”add_new_item”:”Add new Tax TBM Supply”,”new_item_name”:”New Tax TBM Supply name”,”parent_item”:”Parent Tax TBM Supply”,”parent_item_colon”:”Parent Tax TBM Supply:”,”search_items”:”Search Tax TBM Supplies”,”popular_items”:”Popular Tax TBM Supplies”,”separate_items_with_commas”:”Separate Tax TBM Supplies with commas”,”add_or_remove_items”:”Add or remove Tax TBM Supplies”,”choose_from_most_used”:”Choose from the most used Tax TBM Supplies”,”not_found”:”No Tax TBM Supplies found”,”no_terms”:”No Tax TBM Supplies”,”items_list_navigation”:”Tax TBM Supplies list navigation”,”items_list”:”Tax TBM Supplies list”,”back_to_items”:”Back to Tax TBM Supplies”,”name_field_description”:”The name is how it appears on your site.”,”parent_field_description”:”Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.”,”slug_field_description”:”The slug is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.”,”desc_field_description”:”The description is not prominent by default; however, some themes may show it.”},”meta_box_cb”:””,”default_term”:””,”object_types”:[“tbm_supplies”]}}
I believe overall, I’m managing to recreate. However, I am not sure I want to consider this a bug per-say.
I’m more thinking this may be behavior change coming from the 6.8 release.
I imported your settings, changing nothing about them. I clicked to add a new post in one of the post types, and saw a metabox showing “All Tax Tunnel Boring Machines TBM”, and “Most used”. Initially it was empty but I could create and assign terms right from that spot.
I also went and created some terms ahead of time with the other taxonomy, and when I went to add a new post, the metabox was already populated with those two terms. They were intentionally a parent/child relationship.
That said, to confirm, you already had terms created in these taxonomies in question, but it’s still showing an empty spot with just the UI to create on the spot in the post editing screen?
Hi,
Thank you again for your kind reply.
On a page, with Gutenberg (Kadence) Block editor activated, I create a form of custom post type ‘TBM Supplies’. On the editor, on the right column, the taxonomy name of ‘Tax TBM Supplies’ is displayed with a link below titled ‘Add new Tax TBM Supply’. When I click that link, a textbox with title ‘NEW TAX TBM SUPPLY NAME’ and underneath a button ‘Add new Tax TBM Supply’ is displayed.
Whereas when I deactivate the Gutenberg editor and instead activate the Classic Editor plugin, with the same sequence of user actions, I see what I hoped to see in the right column: ‘Tax TBM Supplies’ and underneath a neat hierarchy of terms (categories in parent-child relationship) with checkboxes next to each term.
BTW, I am doing all this to try out CPT UI which I have not used before. From what I understood from tutorials etc, what I see in Classic Editor is the expected behaviour, though I want to use Gutenberg block editor….
Best Regards.
Hi,
Thank you very much for your replies.
I have created the same terms under the same taxonomy as you dıd. Indeed there is no problem. It dısplays neatly with the block editor.
Problem seemed to be with the “TBM Supplies” taxonomy. I have checked the terms to see whay may have triggered this situation (e.g. hypens, dashes, long names etc) but could not find the cause. I have deleted all the terms and created them under the same and other names. I hit the same problem. Then I concluded that it must be with the taxonomy definition (as far as I remember, I have only changed the hierarchy setting to true and not touched anything else). Anyways I have deleted the taxonomy. I have created a brand new taxonomy with the same name and several of the original terms. And now it displays neatly.
I do not know what triggers this problem. But in my case (just a test environment with a few terms created for a taxonomy), now I know the solution.
Thank you very much!
Best Regards.
Very interesting, but glad you got things worked out in the end too.
The topic ‘CPT UI taxonomy checkbox missing in block editor. But shows w.Classic Editor’ is closed to new replies.

