Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#10017 closed enhancement (duplicate)

Custom taxonomy edit page doesnt change "Tag" titles

Reported by: dd32 Owned by: filosofo
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Taxonomy Keywords: needs-patch
Focuses: Cc:


Take for example, This code:

add_action( 'init', 'theme_taxonomies', 5 );

function theme_taxonomies() {
	register_taxonomy( 'people', 'post', array( 'hierarchical' => false, 'label' => 'People', 'query_var' => true, 'rewrite' => true ) );

the result is that a link is made under Posts which links to edit-tags.php?taxonomy=people

If you visit this page, The taxonomy "People" is not mentioned anywhere, Eg, "Popular Tags", "Add a New Tag", etc.

IMO, It would be beneficial if edit-tags.php was changed to allow "Add New %s"/etc.

Change History (5)

#1 @dd32
6 years ago

  • Component changed from General to Taxonomy
  • Owner set to filosofo

#2 @dd32
6 years ago

Another item which was brought up by someone on #wordpress-dev(Sorry, cant remember the name) was that plural forms of taxonomy's would be nice..

Ie. You've got a Tag, and Tags. People and Person, or Friends and Friend.. etc..

any input from anyone on that?

#3 @Denis-de-Bernardy
6 years ago

  • Type changed from defect (bug) to enhancement

would be nice to have the plurals, yeah

#4 @nmac
6 years ago

  • Cc nmac added

I've been working with custom content types and found the ability to add new taxonomies really really useful. The downside is that while I can call edit-tags.php?taxonomy=mytaxonomyname the labels on this admin page all refer to tags - as noted above.
I made some minor mods to edit-tags.php to make the page more generic to taxonomies - purely cosmetic.
For example: remove $title = ('Tags'); line 12, and add these two lines at line 20
$taxonomy_object = get_taxonomy( $taxonomy );
$title = $taxonomy_object->label;
Elsewhere for labels and headings, remove the word tag, so Add New Tag becomes Add New.
Works for me, although I would love to see this in the core. Plurals of course would be nice, but generic statements work as the page has a bit title TAXONOMY NAME.
Great work guys.

#5 @dd32
6 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #11838

Note: See TracTickets for help on using tickets.