• “There is no excerpt because this is a protected post.” This message is OK, but could be a bit off-putting to visitors. Is there a way to customize this message?

Viewing 1 replies (of 1 total)
  • Plugin Author WP Folio

    (@buildwps)

    Hello @wpress2010,

    Thank you for reaching out to us!

    You can customize the default WordPress excerpt text or even replace it with a password form.

    Replace the default WordPress excerpt by a custom text

    function show_post_excerpt( $excerpt ) { if ( post_password_required() ) $excerpt = 'Custom message'; return $excerpt; } add_filter( 'the_excerpt', 'show_post_excerpt' );

    For more information, please take a look here: Display Featured Images & Excerpts for Password Protected Content

    • This reply was modified 4 months, 3 weeks ago by WP Folio.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.