• Resolved Jon Fergus

    (@jon-fergus)


    See screenshot here.

    I’ve created multiple taxonomies, and they all show up in the post editor, but one of them doesn’t load its list of options. In the screenshot you see “co-authors” which is one of my custom taxonomies, and just above it is the taxonomy for “sources”. You can see that the “sources” taxonomy isn’t loading anything in the div element with class “inside”.

    Would love to find some kind of solution here, as the only way around it is to use quick edit under the posts list, but obviously that’s an unnecessary pain.

    Thanks for any help you can offer.

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

    (@tw2113)

    The BenchPresser

    When you click the “Console” tab, are you seeing any error message that look related at all? I feel like there’s some sort of javascript conflict going on that’s preventing things from loading here.

    Thread Starter Jon Fergus

    (@jon-fergus)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm. Not much at all to go off of there.

    If you go to the CPTUI tools menu and click the “Taxonomies” tab, you can get a copy of your taxonomy settings, it’ll be the blob of text on the right. Paste it here and I can import those to my local install to see if I can recreate with exactly what you have for settings. May provide some more insight than I can get from screenshots alone.

    Thread Starter Jon Fergus

    (@jon-fergus)

    {"source":{"name":"source","label":"Sources","singular_label":"Source","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":"1","show_admin_column":"true","show_in_rest":"true","show_in_quick_edit":"true","rest_base":"","rest_controller_class":"","labels":{"menu_name":"Sources","all_items":"All Sources","edit_item":"Edit Source","view_item":"View Source","update_item":"Update Source name","add_new_item":"Add new Source","new_item_name":"New Source name","parent_item":"Parent Source","parent_item_colon":"Parent Source:","search_items":"Search Sources","popular_items":"Popular Sources","separate_items_with_commas":"Separate Sources with commas","add_or_remove_items":"Add or remove Sources","choose_from_most_used":"Choose from the most used Sources","not_found":"No Sources found","no_terms":"No Sources","items_list_navigation":"Sources list navigation","items_list":"Sources list"},"meta_box_cb":"post_sources_meta_box","object_types":["post","page","attachment","avada_portfolio"]},"coauthor":{"name":"coauthor","label":"Co-Authors","singular_label":"Co-Author","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_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"Co-Authors","all_items":"All Co-Authors","edit_item":"Edit Co-Author","view_item":"View Co-Author","update_item":"Update Co-Author name","add_new_item":"Add new Co-Author","new_item_name":"New Co-Author name","parent_item":"Parent Co-Author","parent_item_colon":"Parent Co-Author:","search_items":"Search Co-Authors","popular_items":"Popular Co-Authors","separate_items_with_commas":"Separate Co-Authors with commas","add_or_remove_items":"Add or remove Co-Authors","choose_from_most_used":"Choose from the most used Co-Authors","not_found":"No Co-Authors found","no_terms":"No Co-Authors","items_list_navigation":"Co-Authors list navigation","items_list":"Co-Authors list"},"meta_box_cb":"","object_types":["post"]},"publication_time":{"name":"publication_time","label":"Publication Time","singular_label":"Publication Time","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_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"Publication Time","all_items":"All Publication Time","edit_item":"Edit Publication Time","view_item":"View Publication Time","update_item":"Update Publication Time name","add_new_item":"Add new Publication Time","new_item_name":"New Publication Time name","parent_item":"Parent Publication Time","parent_item_colon":"Parent Publication Time:","search_items":"Search Publication Time","popular_items":"Popular Publication Time","separate_items_with_commas":"Separate Publication Time with commas","add_or_remove_items":"Add or remove Publication Time","choose_from_most_used":"Choose from the most used Publication Time","not_found":"No Publication Time found","no_terms":"No Publication Time","items_list_navigation":"Publication Time list navigation","items_list":"Publication Time list"},"meta_box_cb":"","object_types":["post"]},"recipient":{"name":"recipient","label":"Recipients","singular_label":"Recipient","description":"Recipients of Letters","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_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"Recipients","all_items":"All Recipients","edit_item":"Edit Recipient","view_item":"View Recipient","update_item":"Update Recipient name","add_new_item":"Add new Recipient","new_item_name":"New Recipient name","parent_item":"Parent Recipient","parent_item_colon":"Parent Recipient:","search_items":"Search Recipients","popular_items":"Popular Recipients","separate_items_with_commas":"Separate Recipients with commas","add_or_remove_items":"Add or remove Recipients","choose_from_most_used":"Choose from the most used Recipients","not_found":"No Recipients found","no_terms":"No Recipients","items_list_navigation":"Recipients list navigation","items_list":"Recipients list"},"meta_box_cb":"","object_types":["post"]}}

    Thread Starter Jon Fergus

    (@jon-fergus)

    Thanks for the help. Note also that this issue doesn’t occur with the gutenburg editor. It’s in the classic editor and/or the Avada editor that the issue occurs. And again, it’s only the “sources” taxonomy that has the issue, my other custom taxonomies load fine in any of the editors. So it’s something specific to that taxonomy.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good morning,

    Looks like this is the culprit: "meta_box_cb":"post_sources_meta_box". You’re specifying a value in the Metabox callback field, but are potentially not creating a function by that name to handle rendering the content. Unsure if that was an accidental value added, or perhaps a previous test by someone that was forgotten to be removed. If you remove it, leave that field blank, and save, then WP core resumes responsibility to render things and you’ll be back in business.

    One reason why things were fine with Gutenberg is because that editing experience doesn’t pay attention to anything specified for meta_box_cb

    Thread Starter Jon Fergus

    (@jon-fergus)

    Thank you! That did the trick! Not sure where that field entry came from.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Taxonomy not listing options in post editor’ is closed to new replies.