Created
December 22, 2018 05:53
-
-
Save thetwopct/43e23d35cc7b6a37225214e8f2c29c52 to your computer and use it in GitHub Desktop.
If get_field exists for displaying custom fields (ACF)
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('custom-field') != NULL) : ?> | |
<p>This is my value: <?php the_field('custom-field'); ?></p> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment