Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Is it possible for the echo statement to not display if…

$
0
0

Is it possible for the echo statement to not display if there is nothing in the custom field in the admin?

 
<?php
 
$hometown_port = types_render_field("hometown_port", array("raw"=>"false","separator"=>", "));

echo '<li><span class="descHead2">Hometown:</span> '.$hometown_port. '</li>' ;
?>

The word Hometown: appears even if there is nothing added to the field.


Viewing all articles
Browse latest Browse all 20145

Trending Articles