I am having trouble hiding a div when the input of a custom field is empty. This is the code I am using but can not seem to get it to work. The field that displays the content is _cmb_fe_wysiwyg
<?php
if( empty( $post->post_content) ) {
//empty
}
else {
echo '<div id="ingredientsNeeded">';
echo '<h3>Ingredients</h3>';
echo wpautop( get_post_meta( get_the_ID(), $prefix . '_cmb_fe_wysiwyg', true ) );
echo '</div>';
}
?>