[wp-trac] [WordPress Trac] #26963: wp_get_object_terms using wrong orderby statement
WordPress Trac
noreply at wordpress.org
Wed Aug 19 10:00:11 UTC 2015
#26963: wp_get_object_terms using wrong orderby statement
------------------------------------------+-----------------------------
Reporter: danielvonmitschke | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 3.8
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by dipesh.kakadiya):
Why term_order is in wp_term_relationships table.
Example
I have category 'term-A'
And i have two post post-X( id= 1 ) & post-Y( id = b )
Then entry in db should like this in above case
term :
term_id | name | slug | term_group
1 | term-A | term-A | 0
term-taxonomy
term_taxonomy_id | term_id | taxonomy | description | parent | count
1 | 1 | category | description | | 0
term-relationship:
object_id | term_taxonomy_id | term_order
1 | 1 | 10
2 | 1 | 20
in above case for category term-A there are 2 term order 10 and 20
is it correct? As per my knowledge term_order column should be under term-
taxonomy table.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26963#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list