Only output field if it has a value
gistfile1.phtml
<?php
$some_field = get_job_field( 'some_meta_key' );
if( ! empty( $some_field ) ) {
echo "<h3>Some Field:</h3>";
echo $some_field;
}
?>
<?php
$some_field = get_job_field( 'some_meta_key' );
if( ! empty( $some_field ) ) {
echo "<h3>Some Field:</h3>";
echo $some_field;
}
?>
No comments yet.