[wp-hackers] WP Query - OrderBy Author

John Blackbourn johnbillion+wp at gmail.com
Thu May 17 05:51:07 UTC 2012

On 14 May 2012 16:24, Jeremy Clarke <jer at simianuprising.com> wrote:
> On Sun, May 13, 2012 at 3:01 PM, Robert Lusby <nanogwp at gmail.com> wrote:
>> How would you order by Author Display Name, rather than ID, within
>> WP_Query?
> Display name is stored in the usermeta table and not in posts. I suspect
> the simplest way would be to filter the query to:

The display name is in fact stored in the users table, not the user
meta table. Using 'orderby' => 'display_name' should have the desired

More information about the wp-hackers mailing list