Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Show excerpt for protected category

Simple Membership Plugin › Forums › Simple Membership Plugin › Show excerpt for protected category

  • This topic has 3 replies, 3 voices, and was last updated 1 year, 11 months ago by Eric iStudio101.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 17, 2018 at 4:03 pm #14160
    zsyko
    Participant

    Hi, I am trying to show the excerpt of a protected post (category of posts if possible) when displayed in a feed, but when you click read more or the title of the post to see the full article/post, I would like the full post/article to be password protected. Currently, if I protect the post, the excerpt says “You need to login to view this content. Please login. Not a member? Join us.” Is there a way I could show the excerpt to non-members, but show the full article to only those signed in?

    Thanks very much for your help.

    April 17, 2018 at 7:00 pm #14162
    The Assurer
    Moderator

    Please review “Reason #4: More Tag Protection”
    https://simple-membership-plugin.com/common-reasons-content-protection-not-work/

    July 28, 2024 at 6:15 am #28558
    Eric iStudio101
    Participant

    Is there no way to show the excerpt to non-members (instead of hidding the full post content but the title and featured image) without having to use the section protection feature ?

    What about is the swpm_ function responsible to hide the full content of a restricted post? Any hint to modify it?

    Thanks

    July 28, 2024 at 7:10 am #28561
    Eric iStudio101
    Participant

    I have implemented this solution…

    add_filter(‘swpm_not_logged_in_post_msg’, ‘my_swpm_not_logged_in_post_msg’);

    function my_swpm_not_logged_in_post_msg ( $output ){
    $output = “<p class=\”has-background\” style=\”background-color:#fff4f4\”>🔒 Vous devez être inscrit·e et vous connecter pour voir le contenu :…”;
    if (is_single ()) $output = the_excerpt() . $output;
    return $output;
    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy