Email Encoding
URL to the page in question:
-
So I am trying to encode email addresses for spam protection on the site I have been working on. I am using a Gravity Contact for and so I am okay there. I have email addresses in articles and widgets and the a plugin called Email Encoder Bundle handles all of those automatically (pretty sweet). The only place I am having trouble is the email link on the staff page. Email Encoder Bundle has a form on the backend to get a mailto link that is encoded but it does not work in the Staff Member email blank on the backend. Any ideas how to encode or protect these or suggestions?
Chuck,
You could edit the taxonomy-staff-group.php and single-staff.php files directly and change the email links there. This is what it looks like:
<?php if(get_post_meta($post->ID, "email", $single = true) != ""){ ?>
<span class="email"><a href="mailto:<?php echo get_post_meta($post->ID, "email", TRUE); ?>"> <?php _e('Email', 'organizedthemes'); ?> </a></span>
<?php } ?>
You could replace the mailto link there with one that hides your addresses if you’d like to.
If you need any help, let me know,
Bill
Found an even simpler implementation… changed the Mailto LInk plugin and it just works.
- The topic ‘Email Encoding’ is closed to new replies.