true not true acf

Solutions on MaxInterview for true not true acf by the best coders in the world

showing results for - "true not true acf"
Victoire
03 Jan 2017
1<?php if ( get_field( 'field_name' ) ): ?>
2
3This is displayed when the field_name is TRUE or has a value.
4
5<?php else: // field_name returned false ?>
6
7This is displayed when the field is FALSE, NULL or the field does not exist.
8
9<?php endif; // end of if field_name logic ?>