- This topic has 2 replies, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Get membership level(s) of each post in category archive
What is the actual meta key used by Simple Membership to store membership level information for each post?
I need to hide or modify the excerpt (title, url, content) on the category archive page of each protected post with certain membership level.
For example, unregistered users and free members can not see the post preview on the category page, only logged in Pro members would see the post previews and be able to go to the full post article from there.
Is this related to your question?
https://simple-membership-plugin.com/forums/topic/protected-message-added-to-the_excerpt/
Thank you. I found a way that fits for me.
I check member level via
$member_id = SwpmMemberUtils::get_logged_in_members_id();
then if the excerpt consists of a unique textstring and member_id is X, then i rewrite title, url and excerpt content. So that the user can not go through to the protected content from the category archive in the first place.