[wp-trac] [WordPress Trac] #33790: Taxonomy sharing between Users and Posts

WordPress Trac noreply at wordpress.org
Wed Sep 9 13:34:58 UTC 2015


#33790: Taxonomy sharing between Users and Posts
-----------------------------+-----------------------------
 Reporter:  landwire         |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Taxonomy         |    Version:  4.3
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I have been asking this question in the forum many months ago, but never
 got an answer, so I see if trac is a better place to post it.

 Basically I would like to share a taxonomy between users and posts. At the
 moment this does not seem possible, but I know that the terms are getting
 a major overhaul at the moment and was wondering if that might change too.

 "The wp_term_relationships table just stores an object_id. Once there's a
 post and a user with the same ID, everything gets messed up because then,
 the term is assigned to both, user and post with that ID."

 Are there any plans to make term sharing between users and posts possible,
 so that I do not have to create parallel taxonomies and terms in each
 taxonomy? Like adding a column that holds the "object_type", i.e user or
 post. Not sure what the best approach would be.

 If not, I guess I have a few options:

 1. Create a "user taxonomy" and mostly duplicate 1000 or so terms.

 2. Wait until term_meta is implemented and then save a meta field, with
 each connection, that distinguishes between user and post ID...

 What do you think is the better approach. Or is there another solution?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33790>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list