wp_list_authors including custom post types

Add the following function in functions.php and use custom_wp_list_authors function in place of wp_list_authors in your theme where you want to display authors who wrote custom post types post. function custom_wp_list_authors($args=””) { global $wpdb; $defaults = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘number’ => ”, ‘optioncount’ => false, ‘exclude_admin’ => true, ‘show_fullname’ => false, … Read more

Get $curauth level

toscho is correct. User levels have been deprecated for a long time now. However, the following will get you the available information about the author of the posts on an author archive page. $author = get_queried_object(); var_dump($author); In that dump you should see everything you need, but use the role not the user level– look … Read more