Opened 5 months ago

Last modified 5 months ago

#22875 new enhancement

Additional custom taxonomy object types

Reported by: sooskriszta Owned by:
Priority: normal Milestone: Awaiting Review
Component: Taxonomy Version: 3.5
Severity: major Keywords:
Cc:

Description

At the moment, a taxonomy can be registered for one of the following objects (ref http://codex.wordpress.org/Function_Reference/register_taxonomy ):

  • post
  • page
  • attachment
  • revision
  • nav_menu_item
  • a particular cpt

Taxonomies would become much more powerful and flexible, if:

  • They accept additional objects, e.g. users, taxonomies
  • They accept multiple objects, e.g. a single custom taxonomy could group together posts, pages and attachments

Change History (3)

1st case was already discussed in #10142.

I am not sure about 2nd one - probably this can be achieved by assigning the same term to multiple objects, and then querying for all objects assigned to that term. If this is not the case, please provide more details on this.

comment:2 follow-up: ↓ 3   nacin5 months ago

Taxonomies can already accept multiple objects, and they can also accept additional objects like users or comments.

comment:3 in reply to: ↑ 2   sooskriszta5 months ago

Replying to nacin:

Taxonomies can already accept multiple objects, and they can also accept additional objects like users or comments.

So, to take the example of a particular use case, in BuddyPress, Groups could be made into custom taxonomies that group:

  • people (members),
  • attachments (photos),
  • custom objects (updates) and
  • CPTs (forums, topics, replies)

etc
together?

Note: See TracTickets for help on using tickets.