if( get_field( "text_field" ) ): ?> <p><?php the_field( "text_field" ); ?></p> <?php endif;> или <?php $field = get_field($field_name, $post_id, $format_value); ?>