Created
August 9, 2013 13:18
-
-
Save nickberens360/6193522 to your computer and use it in GitHub Desktop.
Advanced custom field conditional display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( get_field( "email_address" ) ): ?> | |
<li><strong>Email:</strong> <a href="mailto:<?php the_field('email_address'); ?>"><?php the_field('email_address'); ?></a></li> | |
<?php endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment