• Resolved ceehaupt

    (@ceehaupt)


    Hi,

    I created a no hierachical taxonomy. when i edit a term it shows me on top the message succesuflly added and a link, but the link shows back to tags and not back to my custom taxonomy name! I filled out every field in the taxonomy for the labels but it still doesn’t show up there. Any idea?

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

    (@tw2113)

    The BenchPresser

    Not quite following, sorry.

    Is part of the CPTUI UI not reflecting your taxonomy in some way? Or is it some other unrelated area of your WordPress dashboard that’s not? If yes, which?

    Screenshots may help me as well to understand what exactly you’re looking at and seeing.

    Thread Starter ceehaupt

    (@ceehaupt)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm. Not sure what may be controlling that. I assume something within WordPress core, but that also looks like a customized screen.

    Thread Starter ceehaupt

    (@ceehaupt)

    it is a standard screen, i just added some custom fields via acf pro.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you’re willing to share your settings via the Tools submenu from us, and the post types/taxonomies tabs, I can import them and see if anything stands out. Otherwise it’s still details being handled and generated by WP core, and not something we’re directly setting ourselves.

    Thread Starter ceehaupt

    (@ceehaupt)

    {“marken”:{“name”:”marken”,”label”:”Marken”,”singular_label”:”Marke”,”description”:””,”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_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:”Marken”,”all_items”:”Alle Marken”,”edit_item”:”Marke bearbeiten”,”view_item”:”Marke anzeigen”,”update_item”:”Markenname aktualisieren”,”add_new_item”:”Neue Marke erstellen”,”new_item_name”:”Neuer Markenname”,”parent_item”:”\u00dcbergeordnete Marke”,”parent_item_colon”:”\u00dcbergeordnete Marke:”,”search_items”:”Marken durchsuchen”,”popular_items”:”Beliebte Marken”,”separate_items_with_commas”:”Trenne Marken mittels Komma”,”add_or_remove_items”:”L\u00f6sche oder f\u00fcge Marken hinzu”,”choose_from_most_used”:”W\u00e4hle aus den meist genutzten Marken aus”,”not_found”:”Keine Marke gefunden”,”no_terms”:”Keine Marken”,”items_list_navigation”:”Marke”,”items_list”:”Markenliste”},”meta_box_cb”:””,”default_term”:””,”object_types”:[“post”]},”franchise_marken”:{“name”:”franchise_marken”,”label”:”Marken Themen”,”singular_label”:”Marken Thema”,”description”:””,”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_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”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”:””},”meta_box_cb”:””,”default_term”:””,”object_types”:[“post”]}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm. Not quite sure on this one. I’m seeing “Go to Tags” personally which has me wondering if there’s a label field for that, or if it should be inheriting something but is not in this case.

    https://cloudup.com/cYlkAT1B7I6

    What version of WP are you on? I don’t think I missed any incoming new labels for taxonomies, but I can double check

    Thread Starter ceehaupt

    (@ceehaupt)

    Yes, that’s the problem. I’m using WordPress 5.6. Thank you!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like there are label fields for these, and I had previously noted them down on GitHub, but this is one that we never ended up implementing yet.

    I have opened a new issue for this over at https://github.com/WebDevStudios/custom-post-type-ui/issues/796

    If you really need this now, I can provide some quick snippets of code to help get a label of some sort in place.

    Thread Starter ceehaupt

    (@ceehaupt)

    ok, thanks! that would be really nice if you can provide me some snippet!

    Thread Starter ceehaupt

    (@ceehaupt)

    Hi, would be nice if you could give me at least the place where i’ve to look to change that manually in the plugin. Thanks in advance!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sorry about that @ceehaupt I somehow missed seeing your response.

    The code below should do you well, and have only small things to edit to meet your needs.

    function ceehaupt_missing_cptui_labels( $args, $tax_slug ) {
    
    	// Comparing the taxonomy slugs so that you can conditionally set these with one snippet, and also not apply to ALL of them.
    	// Replace "SOME LABEL" with the actual intended values.
    	
    	if ( 'marken' === $tax_slug ) {
    		$args['labels']['most_used']     = 'SOME LABEL';
    		$args['labels']['back_to_items'] = 'SOME LABEL';
    	}
    
    	if ( 'franchise_marken' === $tax_slug ) {
    		$args['labels']['most_used']     = 'SOME LABEL';
    		$args['labels']['back_to_items'] = 'SOME LABEL';
    	}
    	
    	return $args;
    }
    add_filter( 'cptui_pre_register_taxonomy', 'ceehaupt_missing_cptui_labels', 10, 2 );
    
    Thread Starter ceehaupt

    (@ceehaupt)

    Thank you very much!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Name of taxonomy not taken on back link’ is closed to new replies.