The standard way of getting an excerpt is to use the_excerpt()
or get_the_excerpt()
template tags. I am trying to get just the actual content of the Excerpt field.
If there is an excerpt, I want to display it in full (without being abridged or appending […]). If there is no excerpt, I don’t want anything to be displayed.
Is there a straightforward way to do this in WordPress?
Something like this:
$real_excerpt = ???
if ( $real_excerpt ) {
echo $real_excerpt;
} // shouldn't show anything if there isn't a custom excerpt