Advertisement
acipriani

Untitled

Apr 20th, 2021
1,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php if ( get_field( 'field_name' ) ): ?>
  2.  
  3. This is displayed when the field_name is TRUE or has a value.
  4.  
  5. <?php else: // field_name returned false ?>
  6.  
  7. This is displayed when the field is FALSE, NULL or the field does not exist.
  8.  
  9. <?php endif; // end of if field_name logic ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement