You can either user if:else:endif;
syntax:
<?php
$guide = get_post_meta($post->ID, '_wpb_in_onda', TRUE);
if($guide):
?>
<div><?php echo stripslashes(htmlspecialchars_decode($guide));?></div>
<?php endif;?>
or what you are doing, but you need the closing if brace }
:
<?php
$guide = get_post_meta($post->ID, '_wpb_in_onda', TRUE);
if($guide){
?>
<div><?php echo stripslashes(htmlspecialchars_decode($guide));?></div>
<?}; // this is missing in your code ?>
or you can echo out the HTML as well:
<?php
$guide = get_post_meta($post->ID, '_wpb_in_onda', TRUE);
if($guide){
echo '<div>' . stripslashes(htmlspecialchars_decode($guide)) . '</div>';
};
?>