Created
December 8, 2014 11:27
-
-
Save theodorocaliari/87b183fc8c9a418a0362 to your computer and use it in GitHub Desktop.
Verify if the_content() is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//https://wordpress.org/support/topic/how-can-i-avoid-displaying-empty-the_content | |
if($post->post_content != ""){ | |
the_content(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment