Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#22875 closed enhancement (invalid)

Additional custom taxonomy object types

Reported by: sooskriszta's profile sooskriszta Owned by:
Milestone: Priority: normal
Severity: major Version: 3.5
Component: Taxonomy Keywords:
Focuses: 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 (5)

#1 @sirzooro
12 years ago

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.

#2 follow-up: @nacin
12 years ago

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

#3 in reply to: ↑ 2 @sooskriszta
12 years 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?

#4 @wonderboymusic
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

almost everything in BuddyPress is a post_type thing, so you are covered already

#5 @sooskriszta
11 years ago

There is some discussion over at BuddyPress around using CPTs and custom taxonomies:
http://buddypress.trac.wordpress.org/ticket/4796
http://buddypress.trac.wordpress.org/ticket/4017

Note: See TracTickets for help on using tickets.