[wp-trac] [WordPress Trac] #5857: an object's terms should be
positionable
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 14 05:39:22 GMT 2008
#5857: an object's terms should be positionable
-------------------------+--------------------------------------------------
Reporter: andy | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version:
Severity: normal | Keywords: taxonomy sort order
-------------------------+--------------------------------------------------
There is no way for object term entry order to dictate term display order.
Example: register a taxonomy "People" for listing people in photos. You
want to list them from left to right but the taxonomy system can't do
that.
A plugin could do it by storing in postmeta the terms in entry order and
filtering the output, but it could be made a core feature with a little
effort.
Add a column in the term_relationships table. Call it term_order. When
terms are saved into taxonomy registered with 'sort'=>'term_order' we can
do something like this:
{{{
INSERT INTO term_relationships (object_id, term_taxonomy_id, term_order)
VALUES (1, 1, 1), (1, 2, 2), (1, 8, 3) ON DUPLICATE KEY UPDATE term_order
= VALUES(term_order)
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/5857>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list