• Hi!

    i’m working at a theme, and i got some problems..

    my code problem:

    <div id="middle">
    
    	<?php $description = get_post_meta($post->ID, 'right', true); ?>
    				<?php echo $description ?>
    		</div>

    Is there anyway to hide the whole div “middle” if there is no content posted in the custom field ‘right’?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to hide get_post_meta if there is no content there?’ is closed to new replies.