Title: custom field problem
Last modified: August 22, 2016

---

# custom field problem

 *  Resolved [semko](https://wordpress.org/support/users/semko/)
 * (@semko)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-field-problem-11/)
 * Hi, I have code like this:
 * echo ‘<div class=”mail expand”>[<span class=”ico”></span> <p class=”label”>](https://wordpress.org/support/topic/custom-field-problem-11/&apos;. $header_email .&apos;?output_format=md)
   </p></div>’;
 * And I have made it like this, but it doesn’t work:
 *     ```
       $mailto = '<a href="mailto:'. $header_email .'"><span class="ico"></span> <p class="label"></a>';
       echo '<div class="mail expand">'. eeb_email_filter($mailto) .'</p></div>';
       ```
   
 * Please advice.
 * [https://wordpress.org/plugins/email-encoder-bundle/](https://wordpress.org/plugins/email-encoder-bundle/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Pi Zi](https://wordpress.org/support/users/freelancephp/)
 * (@freelancephp)
 * [11 years ago](https://wordpress.org/support/topic/custom-field-problem-11/#post-5878017)
 * What does not work? What is the output?
    Which protection method do you use?
 *  [ddiomede1](https://wordpress.org/support/users/ddiomede1/)
 * (@ddiomede1)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-field-problem-11/#post-5878037)
 * Here is a solution that works thanks to briteweb.com. The icon is using Font 
   awesome 4.0.
 *     ```
       <li wp-if-get-post-meta="|email">
                                                   <a href="mailto:<?php $emailaddy = get_post_meta( get_the_ID(), 'email', true ); echo antispambot( $emailaddy, 1 ); ?>"><i class="fa fa-2x fa-envelope"></i>
                                                   </a>
                                               </li>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom field problem’ is closed to new replies.

 * ![](https://ps.w.org/email-encoder-bundle/assets/icon-256x256.png?rev=2056506)
 * [Email Encoder - Protect Email Addresses and Phone Numbers](https://wordpress.org/plugins/email-encoder-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-encoder-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-encoder-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/email-encoder-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-encoder-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-encoder-bundle/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ddiomede1](https://wordpress.org/support/users/ddiomede1/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/custom-field-problem-11/#post-5878037)
 * Status: resolved