$args = array( 'author=' => $curauth->ID, 'orderby' => 'author', 'order' => 'DESC', 'posts_per_page' => -1, ); $author_query= new WP_Query( $args );