Hi @ben120,
Thanks for reaching out to our support.
Actually, the excerpt does show up on the single (individual) page when you click on its URL.
Depending on your (theme) setup, the excerpt may not display on the Archive, e.g. Category and Author, pages.
May we know how you display those posts?
PS. You may want to drop us a support email to hello(at)preventdirectaccess.com so that we can assist you better & faster.
Thread Starter
Ben
(@ben120)
I’m using elementor addon’s post grid.
If I can’t make it show the excerpt is there a way to change the displayed text from “There is no excerpt as this is a protected post” to something for user friendly
Got it, @ben120.
Yes, it’s possible to do so.
Could you please drop us an email to hello(at)preventdirectaccess.com so that we can guide you through the configurations quickly?
Just to update, to change the default WordPress message, please put this following code on your (child) theme functions.php.
function show_post_excerpt( $excerpt ) {
$post = get_post();
if ( empty( $post ) ) {
return '';
}
if ( post_password_required( $post ) ) {
return $post->post_excerpt;
}
return $excerpt;
}
add_filter( 'the_excerpt', 'show_post_excerpt' );
Please refer to this guide for more information on how to show password protected post excerpt & featured image.