• Resolved Melusine29

    (@melusine29)


    Hi

    I use CPT UI to create customs posts and customs taxonomies.
    For a custom post I created 3 different taxonomies: media type, maturity and localization.

    When I click on the link “choose among the most used” in the taxonomy “type of support” I have the right taxonomies. But when I click on the link “choose among the most used” in the “maturity” taxonomy, the taxonomies are put in the block of the first taxonomy chosen, here “type of support” and if I choose one, it is put in the wrong place.

    It seems to be a bug that exists since several versions.
    Have you already had this bug and how to fix it?

    Thank’s
    Have a nice day

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So you’re saying you have 3 metaboxes for the 3 taxonomies. When editing a post in the post type that has the taxonomies, taxonomy 1’s “choose among most used” works fine. However once you start clicking through with Taxonomy 2’s and Taxonomy 3’s most used, the values are showing in the metabox for Taxonomy 1 instead of their appropriate designated metabox?

    We don’t add any extra code ourselves to the editor pages, so while something is definitely up and i’ll do my best to try and track things down, it’s hard to say it’s something we’ve done specifically. We mostly let WordPress core handle UI creation, based on user-chosen values that we pass to the appropriate registration code.

    Thread Starter Melusine29

    (@melusine29)

    Hi

    Yes it is this bug.

    I tried by enabling the basic WP theme and disabling all extensions except CPT UI and I still get the error.

    Have a nice day

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you saying a bug with our plugin, or with something like WordPress core?

    Would you be willing to paste us the blobs of content found on the Tools menu and both the “post types” tab and “taxonomies” tab so we could import your settings exactly and see if something from those are contributing somehow?

    Thread Starter Melusine29

    (@melusine29)

    I am indeed leaning towards a problem between your plugin and the heart of WordPress due to the fact that I always have a problem with a default theme.

    Yes of course, here is the code for the custom post and custom taxonomies:

    Custom post :
    {"dispositifs":{"name":"dispositifs","label":"Nos dispositifs","singular_label":"Nos dispositifs","description":"Petit tour d\u2019horizon des dispositifs d\u2019accompagnement propos\u00e9s par Orange aux start-up. D\u00e9couvrez le dispositif qui convient le mieux \u00e0 votre projet.","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","show_in_rest":"false","rest_base":"","has_archive":"true","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"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":"","supports":["title","editor","thumbnail","excerpt","custom-fields","page-attributes"],"taxonomies":["type_de_support","maturite_de_votre_start_up","localisation"],"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":""},"custom_supports":""}}

    Custom taxonomies :
    {"type_de_support":{"name":"type_de_support","label":"Type de support","singular_label":"Type de support","description":"","public":"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":"","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":""},"object_types":["dispositifs"]},"maturite_de_votre_start_up":{"name":"maturite_de_votre_start_up","label":"Maturit\u00e9 de votre start-up","singular_label":"Maturit\u00e9 de votre start-up","description":"","public":"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":"","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":""},"object_types":["dispositifs"]},"localisation":{"name":"localisation","label":"Localisation","singular_label":"Localisation","description":"","public":"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":"","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":""},"object_types":["dispositifs"]}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thus far, I’m not managing to recreate at all. I’m not denying that you’re experiencing the issue by any means, but I can’t confirm it’s from our plugin.

    Not sure what browser you’re using, but I’m curious if you getting some sort of javascript error that’s contributing to this. We’d need to check the dev tools console to confirm that.

    Another idea to potentially test would be to use the “Get code” output from the Tools menu. It should be constructing exportable code for you to paste in your theme’s functions.php file or perhaps a custom plugin to handle registering the content types without CPTUI.

    If you’re willing and able, a quick screen recording of the behavior could help as well, just so I can see exactly how it’s behaving.

    Thread Starter Melusine29

    (@melusine29)

    Hi

    I’ve just tried on another WordPress installation and I actually have no worries…
    The site that I’m worried about is a Multisite installation, can it be related?
    If not, I guess it comes from our mu-plugins, it’s the only thing that changes with the other installation…

    I use Firefox but I have the same error under Chrome. There is no error in the JS console.
    I’ll dig the mu-plugins track.

    Thank you for your answers.
    Have a nice day.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yeah, I could see mu-plugin file code playing potential parts in things, so if you remove them on the troublesome site, and the issue goes away, then that’s likely the actual source. In that case, it wouldn’t be anything from CPTUI, though definitely good information to know that custom code could cause this.

    Thread Starter Melusine29

    (@melusine29)

    Hi

    We found the plugin responsible for this problem.
    The site is multilingual and we use the Polylang Pro plugin to manage the languages.

    The categories are therefore created in French and English. Without the plugin, the categories work correctly but when the plugin is activated the categories work as indicated above.

    Have you ever had this kind of feedback?

    Have a nice day

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If we’ve had situations like this, it’s been a long while, and I don’t recall any solutions if any were found.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Worries with several taxonomies in a custom post’ is closed to new replies.