• Hi, can I trouble someone to give me the exact shortcodes to hide part of my content in a post?

    I would like my post to show a description of a digital product to the public, but for members, I would like to show a download link to the digital product. What shortcodes do I need to hide my “product download link”.

    Any help appreciated, thanks!

    https://wordpress.org/plugins/s2member/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi. Check this link see if it helps you.

    http://www.s2member.com/kb/levels-without-incremental-access/

    Here is an actual example of how I’ve used it – and it seems to be working far as I can tell.

    [s2If current_user_is(s2member_level4)]
    Level 4 Membership is not currently active.
    [/s2If]
    
    [s2If current_user_is(s2member_level3)]
    
    [bbp-search]
    
    [bbp-single-forum id=509]
    
    [/s2If]
    
    [s2If current_user_is(s2member_level2)]
    
    The Student Forums are not accessible by Graduates. Visit the PTOA Graduate Forum.
    
    [/s2If]
    
    [s2If current_user_is(s2member_level1)]
    
    Welcome to the PTOA Student Forum. Please read the PTOA Forum Rules before posting.
    
    [bbp-search]
    
    [bbp-single-forum id=509]
    
    [/s2If]
    
    [s2If current_user_is(s2member_level0)]
    You must be registered as a student to view the student forum.
    [/s2If]
    
    [s2If !current_user_can(access_s2member_level0)]
    You must be registered as a student to view the student forum.
    [/s2If]

    This shows the forum to level 1 and 3 members, but not to level 2 members. Level 4 is not in use at all in this case.

    All the [conditionals] are explained at “s2m -> API / Scripting”, please read there…

    Thanks Skippy, that’s helpful!

    You are welcome.

    Since you haven’t posted anything more I hope that means you got it all worked out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode to hide part of my content’ is closed to new replies.