I want to make several author boxes. For that I need to know the author ID’s in order to add all the different authors.
where can I find the author ID?
Thank yoU!
Hello,
You can find it in your WordPress user panel
http://www.mywebsite.com/wp-admin/user-edit.php?user_id=2
or in your WordPress posts edit panel
http://www.mywebsite.com/wp-admin/edit.php?post_type=post&author=1
Indeed, for example you can first sort the users by author, then while hovering their names you can see the ID
– https://www.screencast.com/t/YmdomtJDN
I found the user ID that you are referring to. I Found that one author has user ID 48. When I put this number in the Author ID section. It doesn’t seem to work? I still won’t see an image of the author.
What am I doing wrong?
Or use this code in your functions.php to show the author ID in the WordPress>Users section so you don’t have to keep hovering.
// Show WordPress user ID in dashboard
function rd_user_id_column( $columns ) {
$columns['user_id'] = 'ID';
return $columns;
}
add_filter('manage_users_columns', 'rd_user_id_column');
/*
* Column content
*/
function rd_user_id_column_content($value, $column_name, $user_id) {
if ( 'user_id' == $column_name )
return $user_id;
return $value;
}
add_action('manage_users_custom_column', 'rd_user_id_column_content', 10, 3);
/*
* Column style (you can skip this if you want)
*/
function rd_user_id_column_style(){
echo '<style>.column-user_id{width: 5%}</style>';
}
add_action('admin_head-users.php', 'rd_user_id_column_style');
@brenbrinkman If the ID is valid, the author avatar and description will be displayed. The author has to configure the account with an avatar and description, these will be displayed in the author box
– https://www.screencast.com/t/5jnIh29WKo
– https://demo.tagdiv.com/newspaper/author-box/
