//Type 1 <?php $whoWeAre = get_post_custom_values($key = 'who-we-are-section-title'); if( !empty( $whoWeAre[0] )) { ?> //your code <?php } ?> //Type 2 <?php $mykey_values = get_post_custom_values( 'capabilities-button-text' ); if( !empty( $mykey_values[$i] )) { ?> //your code <?php } ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter