This snippet outputs the post excerpt if one was manually entered. Otherwise, the entire post is displayed.
<?php if( $post->post_excerpt ) {
echo the_excerpt();
}
else
the_content();
?>
This snippet outputs the post excerpt if one was manually entered. Otherwise, the entire post is displayed.
<?php if( $post->post_excerpt ) {
echo the_excerpt();
}
else
the_content();
?>