//Type 1 <?php $whoWeAre = get_post_custom_values($key = 'who-we-are-section-title'); if( !empty( $whoWeAre[0] )) { ?> //Type 2 <?php $mykey_values = get_post_custom_values( 'capabilities-button-text' ); if( !empty( $mykey_values[$i] )) { ?> //your code <?php } ?> //acf loop field hide <?php if() ?>