Hello,
You can use WP User Avatar by flippercode for setting avatar.
For email address encoding, both plugins are good, can you send me your website link after enabling one of them?
If nothing works, then use the following code. Install and activate the OceanWP child theme – Click here and paste this code in the functions.php of child theme.
//encode email addresses shortcode
function encode_email_addresses_sc($atts, $content = null) {
$emailaddress_fields = shortcode_atts(array(
'id' => '',
'email' => ''
),$atts);
$userid = $emailaddress_fields['id'];
$e_mail = $emailaddress_fields['email'];
if ($userid !=='' && $e_mail =='') {
$emailaddress = get_the_author_meta('user_email',$userid);
return '<a href="mailto:'.antispambot($emailaddress).'">'.antispambot($emailaddress).'</a>';
}
if ($userid =='' && $e_mail !=='') {
return '<a href="mailto:'.antispambot($e_mail).'">'.antispambot($e_mail).'</a>';
}
else {
return '';
}
}
add_shortcode('encode_email','encode_email_addresses_sc');
How to use –
You can use it in two ways.
1. [encode_email id=”1″] // replace id with your user id.
2. [encode_email email=”[email protected]”] // enter an email address that you want to encode