Display taxonomy in backoffice ans select in post
-
I have a taxonomy that doesn’t display on the post. It’s called tags and I can select the first taxonomy but not this one. I have the same parameters though
The page I need help with: [log in to see the link]
-
- You’re going to need to update and edit your template files to display any new taxonomy terms for posts. The theme had no way of determining what taxonomies would be associated ahead of time.
- To be certain, you registered your own
post_tag
taxonomy slug? Or you have it named something else, but the labels all just useTag
for UI?
Sorry, I didn’t quite understand. I put a picture for you. What I’d like to do is select in “TAGS” as in category
If you want the checkbox version for terms selection, like you see with categories, set the custom taxonomy to be “hierarchical”. There is a true/false dropdown for that option.
I do but I still have the problem I have only in quick change : https://goopics.net/i/dwxvbh
If you’re wanting to also edit the terms in quick edit/quick change, make sure you set “Show in quick/bulk edit panel.” to true as well.
Sorry we misunderstood. In fact I only have the option to check in quick modfication and not in the post.
Can you paste me your settings for both the post types and the taxonomies? You should be able to get both via the CPTUI Tools menu. First tab would be the post types, and the blob of content on the right would be the settings, then repeat for the second tab, which would be your taxonomies.
No personal information is stored in them, just the content types you’ve registered with their arguments.
I’m curious if I could recreate the issue and/or determine what’s going on with that.
publication type {"commerce":{"name":"commerce","label":"Blog Commerce","singular_label":"Blog Commerce","description":"Article de blog commerce","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":"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":"dashicons-welcome-write-blog","register_meta_box_cb":null,"supports":["title","editor","thumbnail","excerpt","custom-fields","revisions","author","page-attributes"],"taxonomies":["etiquettes","categorie"],"labels":{"all_items":"Tous les articles","add_new":"Ajouter un nouvel article","menu_name":"","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":"","item_published":"","item_published_privately":"","item_reverted_to_draft":"","item_scheduled":"","item_updated":""},"custom_supports":"","enter_title_here":""},"bureau":{"name":"bureau","label":"Blog Bureau","singular_label":"Blog Bureau","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":"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":"dashicons-welcome-write-blog","register_meta_box_cb":null,"supports":["title","editor","thumbnail","excerpt","custom-fields","revisions","author","page-attributes","post-formats"],"taxonomies":["categorie-dossier-commerce","tags"],"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":"","item_published":"","item_published_privately":"","item_reverted_to_draft":"","item_scheduled":"","item_updated":""},"custom_supports":"","enter_title_here":""}}
{"etiquettes":{"name":"etiquettes","label":"Etiquettes","singular_label":"Etiquette","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":"true","show_in_rest":"true","show_tagcloud":"true","sort":"true","show_in_quick_edit":"true","rest_base":"","rest_controller_class":"","rest_namespace":"","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":"","back_to_items":"","name_field_description":"","parent_field_description":"","slug_field_description":"","desc_field_description":""},"meta_box_cb":"","default_term":"","object_types":["commerce"]},"categorie":{"name":"categorie","label":"Cat\u00e9gories","singular_label":"Cat\u00e9gorie","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":"true","show_in_rest":"true","show_tagcloud":"true","sort":"true","show_in_quick_edit":"true","rest_base":"","rest_controller_class":"","rest_namespace":"","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":"","back_to_items":"","name_field_description":"","parent_field_description":"","slug_field_description":"","desc_field_description":""},"meta_box_cb":"","default_term":"","object_types":["commerce"]},"categorie-dossier-commerce":{"name":"categorie-dossier-commerce","label":"Cat\u00e9gories","singular_label":"Cat\u00e9gorie","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":"true","show_in_rest":"true","show_tagcloud":"true","sort":"true","show_in_quick_edit":"true","rest_base":"","rest_controller_class":"","rest_namespace":"","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":"","back_to_items":"","name_field_description":"","parent_field_description":"","slug_field_description":"","desc_field_description":""},"meta_box_cb":"","default_term":"","object_types":["bureau"]},"tags":{"name":"tags","label":"Tags","singular_label":"Tag","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":"true","show_in_rest":"true","show_tagcloud":"true","sort":"true","show_in_quick_edit":"true","rest_base":"","rest_controller_class":"","rest_namespace":"","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":"","back_to_items":"","name_field_description":"","parent_field_description":"","slug_field_description":"","desc_field_description":""},"meta_box_cb":"","default_term":"","object_types":["bureau"]}}
Alright, as is, I see these content types:
Post types: commerce, bureau
Taxonomies: etiquettes, categorie, categorie-dossier-commerce, tags
The taxonomy in question is “tags”, and that’s associated with the “bureau” post type.
Definitely odd behavior overall.
I’m looking at https://developer.www.ads-software.com/reference/functions/register_taxonomy/#reserved-terms and I know they have
tag
listed, I’m wondering iftags
should also be listed, based on this behavior.I renamed the taxonomy to
bureau_tags
and things just started working like expected. So if you’re in a position where you could rename, that may be the best course to go here, as I think the issue is coming from within the depths of WP core here. Not something from CPTUI itself.It’s ok thanks
Welcome.
- The topic ‘Display taxonomy in backoffice ans select in post’ is closed to new replies.