jpcontrerasv
8/26/2016 - 4:46 AM

ACF If Else field

ACF If Else field

<?php if ( get_field( 'field_name' ) ): ?>

This is displayed when the field_name is TRUE or has a value.

<?php else: // field_name returned false ?>

This is displayed when the field is FALSE, NULL or the field does not exist.

<?php endif; // end of if field_name logic ?>