Hiding empty fields
-
Hi, why is it not possible for me to hide the button field, if it’s empty?
This is how I do with the rest of the custom fields. But the button field will not cooperate.
<?php if( get_field('field_name') ): ?> <p>My field value: <?php the_field('field_name'); ?></p> <?php endif; ?>
Thanks ??
- The topic ‘Hiding empty fields’ is closed to new replies.