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

WordPress Trac wp-trac at lists.automattic.com
Tue May 17 20:38:41 UTC 2011


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

Comment (by nacin):

 Replying to [comment:49 greenshady]:
 > @nacin
 >
 > You mentioned somewhere about writing out a guide on how you'd do this
 for core if implemented. Did you ever get around to that? I'd just like to
 future-proof some stuff I'm working on as much as possible.

 I didn't, mainly because after a few conversations we couldn't come up
 with a good way to do this for core.

 As described in #17477, we don't pass around term_taxonomy_id in our API,
 but rather term_id, which requires one to also pass around the taxonomy
 argument. For a meta table, ideally we'd want just one key (thus
 term_taxonomy_id) rather than two (term_id, taxonomy) but our current
 taxonomy API doesn't really allow for that (and our metadata API doesn't
 allow for the other). So I don't think this can happen in core until our
 API grows further.

 There are three plugins in the directory [1]. IIRC, one uses
 term_taxonomy_id, one uses term_id (alone), one uses term_id + taxonomy.
 They seem to use different terminology for either function names, field
 names, or table names.

 [1] [[BR]]
 http://wordpress.org/extend/plugins/simple-term-meta/ (removed,
 unsupported by author)
 http://wordpress.org/extend/plugins/taxonomy-metadata/
 http://wordpress.org/extend/plugins/meta-for-taxonomies/

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


More information about the wp-trac mailing list