Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#24808 closed enhancement (fixed)

Add a Description argument for a taxonomy

Reported by: alexvorn2's profile alexvorn2 Owned by: nacin's profile nacin
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch commit needs-codex
Focuses: Cc:

Description

When registering a custom taxonomy to add option to add a description like when registering a custom post type.

http://codex.wordpress.org/Function_Reference/register_taxonomy

No "description" argument.

I think this is important because it is a summary of what the taxonomy is about.

Attachments (1)

24808.diff (774 bytes) - added by aaronholbrook 11 years ago.
Added description to the default args, allows for creating description of taxonomies

Download all attachments as: .zip

Change History (11)

#1 follow-up: @johnbillion
11 years ago

Where might the description be used?

Note that the 'description' field for post types isn't actually used anywhere.

#3 in reply to: ↑ 1 @alexvorn2
11 years ago

Replying to johnbillion:

Where might the description be used?

Note that the 'description' field for post types isn't actually used anywhere.

It can be used on taxonomy page "site.com/my_taxonomy", and/or on terms page "site.com/my_taxonomy/my_term" - in a heading like <h3>Taxonomy description</h3>.

It's a very easy fix btw(but should not be in a conflict with the term description).

Last edited 11 years ago by alexvorn2 (previous) (diff)

#4 @ericmann
11 years ago

  • Keywords has-patch commit added; needs-patch removed

Looks good!

#5 follow-up: @nacin
11 years ago

Could we add a note to the inline docs for register_taxonomy()?

#6 in reply to: ↑ 5 @aaronholbrook
11 years ago

Replying to nacin:

Could we add a note to the inline docs for register_taxonomy()?

Good call, will do

@aaronholbrook
11 years ago

Added description to the default args, allows for creating description of taxonomies

#7 @nacin
11 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 24833:

Add description argument to register_taxonomy().

props aaronholbrook.
fixes #24808.

#8 @alexvorn2
11 years ago

milestone?

#9 @nacin
11 years ago

  • Milestone changed from Awaiting Review to 3.7

#10 @DrewAPicture
11 years ago

  • Keywords needs-codex added
Note: See TracTickets for help on using tickets.