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

How to Modify Author Page for all Users?

To get the data of the user displayed on the current author archive page you can use: $author = get_user_by( ‘slug’, get_query_var( ‘author_name’ ) ); $user_info = get_userdata( $author->ID ); More info on what is returned: http://codex.wordpress.org/Function_Reference/get_userdata From there you can use the user details you need: <?php echo $user_info->user_firstname . ‘ ‘ . $user_info->user_lastname; … Read more

Author page from blog post

I can’t give you an exact contextual answer because you have not provided your code, however the functions (with example usage) listed below should do what you require. On each blog post on the index.php page I want to display the authors name and image. Inside The Loop you can get the name of the … Read more

Displaying Total Author View

The $current_user object retrieves the currently signed-in user. What you want is the ID of the author whose page you’re viewing. Try this: global $wp_query; $author_id = $wp_query->queried_object_id; $author_posts = get_posts( array(‘author’ => $author_id) ); $counter = 0; // needed to collect the total sum of views foreach ( $author_posts as $post ) { $views … Read more

Use different template than author.php for get_author_posts_url()

There is a filter called author_link. You can use that change the URL to whatever you want. add_filter( ‘author_link’, function ($link, $author_id, $author_nicename) { var_dump($link, $author_id, $author_nicename); // debug return $link; // return your modified URL }, 1,3 ); The question does not have enough detail to allow for more specific code. You can use … Read more

Get author id from url

On an “author” page get_query_var(‘author’) will give you the ID. get_queried_object() will get you considerably more author information. $author = get_queried_object(); echo $author->ID; // var_dump($author); // to see all of the information available. For retrieving custom author data follow the Codex.