Skip to content

Instantly share code, notes, and snippets.

View TChord22's full-sized avatar
💭
I may be slow to respond.

Tasha TChord22

💭
I may be slow to respond.
View GitHub Profile
@jpcontrerasv
jpcontrerasv / ACF If Else field.php
Created August 26, 2016 04:46
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 ?>