Skip Navigation

[Resolved] Controlling content access for a certain membership group

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Author
Posts
#953735

Hi,

Yes, I think we can achieve this by using this link

hidden link

Not sure if it would nee dot be changed in both the first and last elements below though?

[wpv-conditional if="( '[wpv-current-user]' eq '' )"]
<p class="lead">To access resources please join now or log in.</p>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user]' ne '' )"]
[wcm_restrict plans="member-standard"]
[wpv-woo-buy-options add_to_cart_text='Add to basket']
[/wcm_restrict]
[wcm_nonmember plans="member-standard"]
<p class="lead">To access resources please join now.
[/wcm_nonmember]
[/wpv-conditional]

#954475

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Luke,

The above code seems fine to me and should work as intended.

Thanks,
Shane

#954502

The code wouldn't work as I'd not dropped in the url, which I have done below, can you confirm this is acceptable?

[wpv-conditional if="( '[wpv-current-user]' eq '' )"]
<p class="lead">To access resources please hidden link">join now or log in.</p>
[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user]' ne '' )"]
[wcm_restrict plans="member-standard"]
[wpv-woo-buy-options add_to_cart_text='Add to basket']
[/wcm_restrict]
[wcm_nonmember plans="member-standard"]
<p class="lead">To access resources please hidden link">join now
[/wcm_nonmember]
[/wpv-conditional]

#955699

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Luke,

Yes this seems ok to me.

Thanks,
Shane

#1069365

Can you recheck that code? I'd not actually used the url within it and you said its fine. I need you to update the code block to see how you see it working correctly.

#1069496

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Luke,

I've added the code for you but it seems that some form of caching is causing it not to be presented on the frontend. Do you have any caching on this site ?

Thanks,
Shane