This is probably pretty simple, but...
I want to use the WP function antispambot not on get_the_author_email but on a value in a field I added to User Profile called publicemail. Everything I've tried throws a php error.
This is the antispambot usage shown in the WP docs:
echo antispambot(get_the_author_email());
And this is the complete function I'd like to get to work with antispambot and have it encode publicemail:
<?php
if ( !empty( $curauth->publicemail )){
echo 'Email <a href="mailto:' .$curauth->publicemail.' ?subject=Webmail">
<img src="' . get_bloginfo('template_url') . '/images/email_16.png"></a>'; }
?>
antispambotusage? Btw: Afaik, you should only use it on$curauth->publicemail, which should be the actual email. – kaiser Feb 28 '12 at 8:53antispamboton$curauth->publicemail, i.e.antispambot($curauth->publicemail)which doesn't work. – songdogtech Feb 28 '12 at 14:14