Created
September 3, 2012 10:42
-
-
Save ms-studio/3608471 to your computer and use it in GitHub Desktop.
Provide link only if post has some content
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
if($post->post_content != "") { | |
// the post HAS some content ... | |
?> | |
<a href="<?php the_permalink();?>"><?php the_title();?></a> | |
<?php | |
} else { | |
// the post is EMPTY ... | |
the_title(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment