Title: [s2mop] variables not working
Last modified: August 22, 2016

---

# [s2mop] variables not working

 *  [fridaallende](https://wordpress.org/support/users/fridaallende/)
 * (@fridaallende)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/)
 * Hello,
 * i have tried to use both [s2if] and s2mops variables, however i can not manage
   to get them work, not even the most simple. Nothing happens when i use them in
   the membership option page. Any ideas what may be the cause, what i am doing 
   wrong?Does it make any difference if i paste them in visual or html editor?
    
   e.g. [s2MOP]You attempted to access members-only content.[/s2MOP] Thank you in
   advance,
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jaspud](https://wordpress.org/support/users/jaspud/)
 * (@jaspud)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5362992)
 * Are you using the pro version? It appears to only work with the pro version of
   the plugin
 * This is a good page with information on s2mop
 * [http://www.s2member.com/kb/s2mop-shortcode/](http://www.s2member.com/kb/s2mop-shortcode/)
 *  Thread Starter [fridaallende](https://wordpress.org/support/users/fridaallende/)
 * (@fridaallende)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5363024)
 * Dear Jaspud,
 * indeed, I am using the pro version. I have tried all options possible so far,
   rewrite the membership page a thousand times, read all issues on the forum… I
   have no further ideas.
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5363065)
 * First, when you tried `[s2If]` and `[/s2If]`, did you use a capital I?
 * If so, and it still doesn’t work, then I’d check for a plugin or theme conflict.
 *  Thread Starter [fridaallende](https://wordpress.org/support/users/fridaallende/)
 * (@fridaallende)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5363144)
 * I did try it with capital I, i copied the exact conditional.All I need is a php
   or s2if function to have a message displayed that the information is either for
   free subscribers or for level 1. Should this be posted on the membership page
   or the post, may be here is where i am getting it wrong?
 * Thank you
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5363149)
 * `[s2If]` should work on any post or page, so you’re not getting that wrong. I
   would check for a plugin or theme conflict.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[s2mop] variables not working’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/s2mop-variables-not-working/#post-5363149)
 * Status: not resolved