Custom taxonomies disappeared
-
I have lost my custom taxonomies! I’ve checked behind the sofa or behind the curtains but they’re – lost! ??
I use custom taxonomies on a custom post type and have done for almost 2 years. It’s all been lovely and I’ve never had issues. I used them as recently as last Tuesday (6 days ago) and had no problems.
Today – gone! I just created a brand new custom post type and the custom taxonomy items to the right of the editor aren’t there. I tried editing an existing custom post type and it loads but doesn’t display the custom taxonomies on the right, or in the post itself. When I open the custom post type, it renders well as it should (so the data is still there for old items, clearly) The link with this comment shows you a custom post type.
More info:
Custom post type = Eatery
Custom taxonomies = Cuisine, Price range
The page I need help with: [log in to see the link]
-
I assume the taxonomies various settings are still present and saved with CPTUI, so it’s not so much a registration issue?
Are you able to create terms still, away from the post editor screen?
Are you still able to use them on the previous post types? or are they apparently gone regardless of the content type?
Did you change the capability type for the new post type, something away from “post” ?
If you copy/paste the CPTUI > Tools content on the right, for both the post type tab as well as the taxonomies tab, I can import and see if I can recreate the “missing” issue, or at least look over the settings themselves.
Cool questions – and here are my answers:
1 – the settings are still saved. The CPT UI still shows the taxonomies correctly registered. And when I look at the list of (past) custom types, the columns show me the right data in the right columns for the custom taxonomies. This tells me the data is there in the database and is correct.
2 – I don’t know how to create terms without the editor screen. I haven’t tried this.
3 – In previous post types, the custom taxonomies do not appear so I cannot change the fields. Example: For an eatery (custom post type), I set up the “Cuisine” (Custom taxonomy) so a restaurant can be tagged as “Indian” or “Sushi”. For old post types, the custom taxonomy does not appear in edit mode but it displays correctly on the web (see link in my previous comment).
4 – I did not change the capability type. Haven’t messed around with the CPT UI settings lately as I haven’t needed to.
5 – CPT UI > Tools data is: POSTS:
{“eatery”:{“name”:”eatery”,”label”:”Restaurants”,”singular_label”:”Restaurant”,”description”:”Restaurants, bistros, bars and coffee shops!”,”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”:”eateries”,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”can_export”:”true”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-food”,”register_meta_box_cb”:null,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”custom-fields”,”author”],”taxonomies”:[“category”,”post_tag”,”cuisine”],”labels”:{“menu_name”:”Eateries”,”all_items”:”All eateries”,”add_new”:”Add new”,”add_new_item”:”Add new eatery”,”edit_item”:”Edit eatery”,”new_item”:”New eatery”,”view_item”:”View eatery”,”view_items”:”View eateries”,”search_items”:”Search eateries”,”not_found”:”No eateries found”,”not_found_in_trash”:”No eateries found in bin”,”parent”:”Parent eatery”,”insert_into_item”:”Insert into eatery”,”uploaded_to_this_item”:”Uploaded to this eatery”,”filter_items_list”:”Filter eateries”,”items_list”:”List of eateries”,”name_admin_bar”:”Eatery”,”item_published”:”Eatery publshed”,”item_published_privately”:”Eatery published privately”,”item_reverted_to_draft”:”Eatery reverted to draft”,”item_scheduled”:”Eatery scheduled”,”item_updated”:”Eatery updated”,”parent_item_colon”:”Parent eatery”,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”items_list_navigation”:””,”attributes”:””},”custom_supports”:””,”enter_title_here”:”Add eatery”},”solo-item”:{“name”:”solo-item”,”label”:”Solo Items”,”singular_label”:”Solo Item”,”description”:”Solo activities like books, TV series or films to enjoy in your own company”,”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”:”6″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-book-alt”,”register_meta_box_cb”:null,”supports”:[“title”,”editor”,”thumbnail”],”taxonomies”:[],”labels”:{“menu_name”:”Solo items”,”all_items”:”All Solo Items”,”add_new”:”Add solo item”,”add_new_item”:”Add new Solo Item”,”edit_item”:”Edit Solo Item”,”new_item”:”New Solo Item”,”view_item”:”View Solo Item”,”view_items”:”View Solo Items”,”search_items”:”Search Solo Items”,”not_found”:”No Solo Items found”,”not_found_in_trash”:”No Solo Items found in bin”,”parent”:”Parent Solo Item:”,”featured_image”:”Featured image for this Solo Item”,”set_featured_image”:”Set featured image for this Solo Item”,”remove_featured_image”:”Remove featured image for this Solo Item”,”use_featured_image”:”Use as featured image for this Solo Item”,”archives”:”Solo Item archives”,”insert_into_item”:”Insert into Solo Item”,”uploaded_to_this_item”:”Upload to this Solo Item”,”filter_items_list”:”Filter Solo Items list”,”items_list_navigation”:”Solo Items list navigation”,”items_list”:”Solo Items list”,”attributes”:”Solo Items attributes”,”name_admin_bar”:”Solo Item”,”item_published”:”Solo Item published”,”item_published_privately”:”Solo Item published privately.”,”item_reverted_to_draft”:”Solo Item reverted to draft.”,”item_scheduled”:”Solo Item scheduled”,”item_updated”:”Solo Item updated.”,”parent_item_colon”:”Parent Solo Item:”,”item_trashed”:””},”custom_supports”:””,”enter_title_here”:”Add Solo Item”}}
Taxonomy:
{“cuisine”:{“name”:”cuisine”,”label”:”Cuisines”,”singular_label”:”Cuisine”,”description”:”A list of all cuisines reviewed and samples”,”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”:”true”,”show_tagcloud”:”false”,”sort”:”false”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”labels”:{“menu_name”:”Cuisines”,”all_items”:”All cuisines”,”edit_item”:”Edit Cuisine”,”view_item”:”View Cuisine”,”update_item”:”Update name of cuisine”,”add_new_item”:”Add new cuisine”,”new_item_name”:”New type of cuisine”,”parent_item”:”Parent Cuisine”,”parent_item_colon”:”Parent Cuisine:”,”search_items”:”Search Cuisines”,”popular_items”:”Popular Cuisines”,”separate_items_with_commas”:”Separate Cuisines with commas”,”add_or_remove_items”:”Add or remove Cuisines”,”choose_from_most_used”:”Choose from the most used Cuisines”,”not_found”:”No Cuisines found”,”no_terms”:”No Cuisines”,”items_list_navigation”:”Cuisines list navigation”,”items_list”:”Cuisines list”,”back_to_items”:”Back to Cuisines”,”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”:[“eatery”]},”price_range”:{“name”:”price_range”,”label”:”Price ranges”,”singular_label”:”Price range”,”description”:”This is a taxonomy of price ranges used for restaurants”,”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”:”true”,”show_tagcloud”:”false”,”sort”:”false”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”labels”:{“menu_name”:”Price ranges”,”all_items”:”All price ranges”,”edit_item”:”Edit price range”,”view_item”:”View price range”,”update_item”:”Update price range”,”add_new_item”:”Add a new price range”,”new_item_name”:”New price range”,”parent_item”:”Parent price range”,”parent_item_colon”:”Price range:”,”search_items”:”Search price ranges”,”popular_items”:”Popular price ranges”,”separate_items_with_commas”:”Separate price ranges with commas”,”add_or_remove_items”:”Add or remove price ranges”,”choose_from_most_used”:”Choose from the most used price ranges”,”not_found”:”No price ranges found”,”no_terms”:”No price ranges”,”items_list_navigation”:”Price ranges list navigation”,”items_list”:”Price ranges list”,”back_to_items”:”Back to price ranges”,”name_field_description”:”The price range is how it appears on your site”,”parent_field_description”:””,”slug_field_description”:””,”desc_field_description”:””},”meta_box_cb”:””,”default_term”:””,”object_types”:[“eatery”]},”activity”:{“name”:”activity”,”label”:”Activities”,”singular_label”:”Activity”,”description”:”Describes what the solo activity is, i.e., to read, watch, or binge.”,”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”:”true”,”show_tagcloud”:”false”,”sort”:”false”,”show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”labels”:{“menu_name”:”Activities”,”all_items”:”All Activities”,”edit_item”:”Edit Activity”,”view_item”:”View Activity”,”update_item”:”Update Activity name”,”add_new_item”:”Add new Activity”,”new_item_name”:”New Activity name”,”parent_item”:”Parent Activity”,”parent_item_colon”:”Parent Activity:”,”search_items”:”Search Activities”,”popular_items”:”Popular Activities”,”separate_items_with_commas”:”Separate Activities with commas”,”add_or_remove_items”:”Add or remove Activities”,”choose_from_most_used”:”Choose from the most used Activities”,”not_found”:”No Activities found”,”no_terms”:”No Activities”,”items_list_navigation”:”Activities list navigation”,”items_list”:”Activities list”,”back_to_items”:”Back to Activities”,”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”:”By default the description is not prominent; however, some themes may choose to display this.”},”meta_box_cb”:””,”default_term”:””,”object_types”:[“solo-item”]}}
I tried disabling the plugin and re-enabling it but that simple reboot didn’t have any effect.
I don’t know how to create terms without the editor screen. I haven’t tried this.
This would be done by visiting say: https://www.unexpectedtraveller.com/wp-admin/edit-tags.php?taxonomy=cuisine&post_type=eatery where you can see all the current terms available and how many posts are assigned to each.
It’s possible you’re experiencing some sort of errors on the server and that’s preventing things from rendering fully like expected.
I imported your settings above and I’m seeing the Cuisines and Price ranges taxonomy boxes in the block editor.
Granted I don’t have many terms outside of 1 each created.
Not sure how versed you are with browser developer tools, but the console tab should show errors if any are appearing.
Right! I didn’t realise this is what you meant re adding terms outside of the editor. Silly of me – and I’ve checked and I can add terms there. I can also see the post count for each term.
Your screen shot is exactly what I used to see and no longer do; it’s reassuring to see you can see these because it clearly is a matter of something on my side, and not related to the CPT UI plugin, I guess.
I think there is something wrong with my server because I can no longer see stats either so I’m looking into this too. How do I get to the console tab? I’m technical enough to be dangerous ??
Right click in the screen, and then in the context menu, choose “Inspect” or cmd+option+J or ctrl+shift+J in Chrome.
Ok – I see the console and can inspect individual elements but I don’t see any error messages or problems there. I’ll keep digging though
Have the console panel open and refresh the editor screen. You may also need to toggle some of the logging types as well with the browser UI.
I didn’t work on this yesterday (it was a holiday here in Europe and I was out hiking) but today, lo and behold, it works without problems.
So I didn’t need to reboot the server but needed to reboot … myself? ??
Joking apart, I greatly appreciate your help!
Very odd but happy to hear things are back in working order, regardless of whatever the source of the issue was.
- The topic ‘Custom taxonomies disappeared’ is closed to new replies.