Skip to content

Instantly share code, notes, and snippets.

@nickberens360
Created August 9, 2013 13:18
Show Gist options
  • Save nickberens360/6193522 to your computer and use it in GitHub Desktop.
Save nickberens360/6193522 to your computer and use it in GitHub Desktop.
Advanced custom field conditional display
<?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