-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
post-type taxonomy appears in get_taxonomies() output without proper labels #1173
Comments
IMHO, this should be tackled before 0.5.5 ships with #1171. It will cause confusion otherwise: Users will select the post-types "Tag" entry and wonder why no tags appear. |
The https://codex.wordpress.org/Function_Reference/register_taxonomy |
People are literally only going to use this widget for series (and maybe categories) as I've said before :) But, I do agree with the general point that we should set these options correctly when all custom taxonomies are registered. Also, the post types taxonomy should be registered in inc/taxonomies with everything else and not in inc/term-icons |
Moving to hotfix for HELPDESK-589, will include this fix in #1171. |
This happens only if the option to enable the post-types prominence term is unchecked in Theme Options > Advanced > Enable "Post Types" taxonomy.
If the option is unchecked, the label of the post-type taxonomy as rendered in the Largo Taxonomy List widget is "Tag":
If the option is checked, the label is the correct "Post Types":
I think this is because the action that hides the taxonomy is stripping all the labels: https://github.com/INN/Largo/blob/74508518af57e99a378cdf8fd31317c56667118f/inc/taxonomies.php#L466-L471
So the solution is to either change the initial registration function in inc/term-icons.php to set
show_in_nav_menus
on registration, or to change the reregistration function to not obliterate the labels.The text was updated successfully, but these errors were encountered: