latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

shortcode not working

Home Forums Community Forum shortcode not working

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 8 months ago.

Topic Author Topic
Posted: Monday Apr 15th, 2013 at 2:31 am #47472

I have basically two levels for members.
On level 2 the members do pay for their subscription with recurring payments.
On the profile page I therefore added a button to cancel the subscription.
I want that button to be visible only for the members who are subscribed to that level

No matter what I try, the button just doesn’t show.
The for the page looks like this:

[s2Member-Profile /]
<hr />

[s2If !current_user_can(access_s2member_level2)]
[s2Member-PayPal-Button cancel="1" image="default" output="anchor" /]
[/s2If]

What am I doing wrong here?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Apr 15th, 2013 at 7:23 pm #47542
Bruce
Username: Bruce
Staff Member

I just tried this on a current installation of s2Member.

I think the problem is with your s2If statement. Try this:

[s2Member-Profile /]
<hr/>

[s2If current_user_can(access_s2member_level2)]
[s2Member-PayPal-Button cancel="1" image="default" output="anchor" /]
[/s2If]
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.