[wp-trac] [WordPress Trac] #18616: WP_Query Order by Taxonomy
WordPress Trac
noreply at wordpress.org
Fri Oct 23 16:38:04 UTC 2015
#18616: WP_Query Order by Taxonomy
-------------------------------------------------+-------------------------
Reporter: justindgivens | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting
Component: Query | Review
Severity: normal | Version: 3.2.1
Keywords: has-patch needs-testing 2nd-opinion | Resolution:
close | Focuses:
-------------------------------------------------+-------------------------
Changes (by sc0ttkclark):
* keywords: has-patch needs-testing 2nd-opinion => has-patch needs-testing
2nd-opinion close
Comment:
I'd be totally +1 for this, but because it still requires three joins
(wp_term_relationships for terms related to the posts, wp_term_taxonomy to
restrict by taxonomy, wp_terms to get the term name).
However, there are solutions in the form of snippets and maybe even
plugins -- that can add this functionality. So I'd say, for performance
reasons, this should be closed. Three joins is an awful lot on a very
large database of posts with heavy use of terms.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18616#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list