[wp-trac] [WordPress Trac] #20606: orderby rand param does not work with either WP_User_Query or get_users
WordPress Trac
wp-trac at lists.automattic.com
Wed May 2 22:12:35 UTC 2012
#20606: orderby rand param does not work with either WP_User_Query or get_users
-----------------------------+-----------------------------
Reporter: kjmeath | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.2.1
Severity: normal | Keywords:
-----------------------------+-----------------------------
Using WordPress 3.2.1
{{{
$contributors = get_users(array('role' => 'contributor', 'orderby' =>
'rand', 'number' => 3));
}}}
{{{
$wp_user_search = new WP_User_Query(array('role' => 'contributor',
'orderby' => 'rand', 'number' => 3));
$contributors = $wp_user_search->get_results();
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20606>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list