How do i pass user id for this statement?
-
Hello, thanks for this great plugin. I am tying to ge the following statement to work and I do not know how to pass the user id. Can you help me with this?
<?php
if ( has_wp_user_avatar($user_id) ) {
echo get_wp_user_avatar($user_id, 96);
} else {
echo ‘<img src=”my-alternate-image.jpg” />’;
}
?>I would like to output a different size image for authors and contributors. How can i do this?
Thanks for your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do i pass user id for this statement?’ is closed to new replies.