[wp-trac] [WordPress Trac] #41350: Support for random order in WP_Term_Query::query()

WordPress Trac noreply at wordpress.org
Mon Oct 2 23:10:50 UTC 2017


#41350: Support for random order in WP_Term_Query::query()
-------------------------------------------------+-------------------------
 Reporter:  camthor                              |       Owner:
     Type:  feature request                      |  SergeyBiryukov
 Priority:  normal                               |      Status:  closed
Component:  Taxonomy                             |   Milestone:
 Severity:  normal                               |     Version:  4.8
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:  wontfix
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Just wanted to note that even if `WP_Term_Query::parse_orderby()` does not
 explicitly support `orderby => 'rand'`, support for it can be added using
 [https://developer.wordpress.org/reference/hooks/get_terms_orderby/
 get_terms_orderby] filter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41350#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list