Viewing 1 post (of 1 total)
  • Marc Gottlieb
    Keymaster
    Post count: 0
    #4848 |
    $user_query = new WP_User_Query(array( 'role'=>'author','orderby'=>'include','include'=>array(2,10,5,8,7,6)));
    

    When making a WP_User_Query, you can list your authors in a specific order by setting include to an array with the list of authors, then set orderby to include and your authors (users) will be listed in the order you specified

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.