Created
November 11, 2013 19:54
-
-
Save JiveDig/7419297 to your computer and use it in GitHub Desktop.
Show the post content if it exists
This file contains hidden or 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
| // Show post content if it exists | |
| $post = get_post($post->ID); | |
| if($post->post_content=="") { | |
| echo '<p>No description provided.</p>'; | |
| } else { | |
| genesis_do_post_content(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment