- This topic has 2 replies, 2 voices, and was last updated 6 years, 5 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 › Show specific content to a particular member via shortcode in frontend
Tagged: particular member, shortcode
Hello,
i would like to show specific content to particular members in frontend with this code:
$member_id = SwpmMemberUtils::get_logged_in_members_id();
if ($member_id == "2"){
echo "Hi, your member ID is 2";
}
.
It works with a php code insert plugin, but that is not very handy for people who cannot deal with php language.
Could you provide a shortcode,, just like
[spwm-only-logged-in user="2"]content and other shortcodes only visible for user 2 [/spwm-only-logged-in user="2"]?
Thank you very much!
ishop
Hi, does the following addon work for you?
https://simple-membership-plugin.com/apply-partial-section-protection/
Regards
Hi!
No it doesnt. There is no option for members who are logged in, but dont have a plan. My site doesnt have a free plan. And i want everybody to have acces who is logged in. Even if they have a plan going on. So i managed it with that plugin: https://wordpress.org/plugins/user-access-shortcodes/
It works like this [UAS_specific hint="" ids="1" admin="1"] This content can only be seen by some selected users. [2nd shortcode] [/UAS_specific]
Actually, the member numbers of WordPress and Simple membership are different, better would be to have it in one place, so if you make a new shortcode it would also be nice!
Thank you
ishop