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 specific content to a particular member via shortcode in frontend

Simple Membership Plugin › Forums › Simple Membership Plugin › Show specific content to a particular member via shortcode in frontend

Tagged: particular member, shortcode

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 5 months ago by ishop.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 12, 2019 at 11:08 am #19462
    ishop
    Participant

    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

    December 13, 2019 at 1:49 am #19463
    mbrsolution
    Moderator

    Hi, does the following addon work for you?

    https://simple-membership-plugin.com/apply-partial-section-protection/

    Regards

    December 13, 2019 at 5:09 pm #19464
    ishop
    Participant

    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

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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