[wp-trac] [WordPress Trac] #41350: Support for random order in WP_Term_Query::query()
WordPress Trac
noreply at wordpress.org
Mon Jul 17 21:00:19 UTC 2017
#41350: Support for random order in WP_Term_Query::query()
-----------------------------+-----------------------------
Reporter: camthor | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.8
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
As already valid and useful for posts, it should be possible to choose a
random order also for terms.
This could be achieved by adding "rand" as additional allowed value for
"orderby". The function "parse_orderby" would need to be modified,
translating "orderby => "rand" into "ORDER BY RAND()"
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41350>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list