Last active
August 29, 2015 14:19
-
-
Save tripflex/3fe8a74192568107b87f to your computer and use it in GitHub Desktop.
Only display field and label if value exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$company_description = get_company_field( 'company_description' ); | |
if( $company_description ): | |
?> | |
<h4><?php _e( 'About Us', 'petsitter' ); ?></h4> | |
<?php | |
echo $company_description; | |
endif; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $company_description = get_company_field( 'company_description' ); if( $company_description ):?> | |
<h4><?php _e( 'About Us', 'petsitter' ); ?></h4> | |
<?php echo $company_description; endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment