updated   : April 22, 2013
we now have 608 snippets

No excerpt available, display default message

wordpress snippet

Adding this snippet to your wordpress theme will allow you to display a default message when no excerpt has been added.

snippet :  PHPcopy
$excerpt = get_the_excerpt();
if ( empty($excerpt) ) {
	echo "no excerpt for this posting.";
}
echo $excerpt;