November 29, 2017
Handy trick I use to show / hide a content area in a custom layout if there is no content.
if( '' !== get_post()->post_content ) {
// do something
}
Further notes:
If the above fails to work, particularly within the loop, replace get_post with $post.