Encoding email addresses in a template doesn't seem to be working
-
I’m using this code in my template:
<a href="mailto:<?php $author_email = the_author_meta('user_email'); echo eae_encode_str($author_email); ?>">Email Me</a>
But an error message and a non-supported character are getting added to the end of the email address, so the link doesn’t work properly:
<a href="mailto:[email protected]<br /> <b>Warning</b>: Division by zero in <b>/home/weheartgames/webapps/westgatedev/wp-content/plugins/email-address-encoder/email-address-encoder.php</b> on line <b>115</b><br /> ">Email Me</a>
Also, it’s unclear to me whether or not this is actually encoding the email address. Any help would be appreciated, thanks!
Here’s the page that error is happening on:
https://westgate.door62.com/author/jrempel/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Encoding email addresses in a template doesn't seem to be working’ is closed to new replies.