Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

true not true acf

<?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 ?>
 
PREVIOUS NEXT
Tagged: #true #true #acf
ADD COMMENT
Topic
Name
9+7 =