I’m trying to create an if statement which will only call the_excerpt if one has been written by the user (so not the WP generated on which ends […])
I am using this code…
<?php if (get_the_excerpt($post->ID)!==''): ?> <?php the_excerpt(); ?> <?php endif; ?>
But it’s still called. I presume because WP still recognises the excerpt not equal to ‘ ‘ because it’s generated one itself.
Is there a way to qualify only an excerpt written by the USER?
- The topic ‘If no written excerpt’ is closed to new replies.