get_user_meta( $wp_query->post->post_author );
}
/*
* Get the avatar in this order
* - Avatar option on the user profile page.
* - Default avatar image option on the theme options page.
* - Wordpress gravatar image.
*/
if ( ! empty( $cust_fields['avatar'] ) ) {
$alt = ! empty( $cust_fields['avatar_alt'] ) ?
esc_attr( $cust_fields['avatar_alt'] ) :
'';
$url = ! empty( $cust_fields['avatar'] ) ? esc_url( $cust_fields['avatar'] ) : '';
$width = ! empty( $cust_fields['avatar_width'] ) ?
esc_attr( $cust_fields['avatar_width'] ) :
'';
$height = ! empty( $cust_fields['avatar_height'] ) ?
esc_attr( $cust_fields['avatar_height'] ) :
'';
$avatar = '