[wp-trac] [WordPress Trac] #60490: Add 'author__in' option to WP_Query 'orderby' options

WordPress Trac noreply at wordpress.org
Fri Feb 9 18:31:07 UTC 2024


#60490: Add 'author__in' option to WP_Query 'orderby' options
-----------------------------+-----------------------------
 Reporter:  bburgay          |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Query            |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I would like to be able to preserve the author ID order given in the
 WP_Query author_^^_in array.

 This would work like how the orderby post_^^_in option works but for
 author_^^_in instead.

 So, for example we already have:

 'post_^^_in' – Preserve post ID order given in the post_^^_in array

 And we'd be adding:

 'author_^^_in' – Preserve author ID order given in the author_^^_in array

 (https://developer.wordpress.org/reference/classes/wp_query/#order-
 orderby-parameters)

 Would it be possible to add this option to WP Core?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60490>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list