[wp-trac] [WordPress Trac] #10142: Add metadata support for taxonomies

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 19 05:05:01 UTC 2011

#10142: Add metadata support for taxonomies
 Reporter:  sirzooro                             |       Owner:
     Type:  feature request                      |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Taxonomy                             |  Release
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:

Comment (by mikeschinkel):

 Replying to [comment:33 dd32]:
 > > Sorry, I don't follow that at all. Can you give a use-case example to
 > Example meta key with taxonomy_term_id, to apply to a specific tt for
 all relationships would be:
 >  * 'colour' => red
 > If you needed relationship meta, ie. object_id+taxonomy_term_id for a
 specific tt to a specific object,
 >  * $post->ID . '_colour' => red
 > My point, was that negates the need for a relationship meta table, and
 pushes it back to only needing the term_taxonomy meta

 Thanks for the example.

 So by that logic we don't actually need taxonomy meta at all. Instead we
 can just use wp_options with a prefix like this:

  * `'taxterm_' . $taxonomy_term->taxonomy_term_id`, and
  * `'taxtermrel_' . $post->ID . '_' . $taxonomy_term->taxonomy_term_id`


Ticket URL: <http://core.trac.wordpress.org/ticket/10142#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list