Title: Conditional content shortcode not working
Last modified: January 6, 2025

---

# Conditional content shortcode not working

 *  Resolved [KS](https://wordpress.org/support/users/karl19/)
 * (@karl19)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-content-shortcode-not-working/)
 * Hello, we have used the plugin for a number of years, including showing conditional
   content via shortcode, like this:
 * `[arm_restrict_content plan="any_plan" type="show"]Member content[armelse]Regular
   content[/arm_restrict_content]`
 * All of a sudden it stopped working and everyone gets shown the regular content.
   The only difference on the site that I can see, is that is seems to have auto-
   updated to WordPress version 6.7. But even when I update AR Member to the latest
   version, the shortcode conditional doesn’t work.
   Is anyone else having this issue?

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

 *  Plugin Support [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * (@dimplemodi)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-content-shortcode-not-working/#post-18229189)
 * Hello,
 * I have checked the shortcode at our local server, with the latest version of 
   ARMember Lite, but somehow the shortcode was being executed without any issue,
   still I suggest you to replace the below provided shortcode with the one you 
   currently have added:
 * [arm_restrict_content  plan=”any_plan,”  type=”show”]
   Member content[armelse]
   Regular content[/arm_restrict_content]
 * Please check accordingly and let me know if there is anything else.
 * Thanks
 *  Thread Starter [KS](https://wordpress.org/support/users/karl19/)
 * (@karl19)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/conditional-content-shortcode-not-working/#post-18229540)
 * Hello – excellent, many thanks for your reply. After I added the comma, it seems
   to work again. Is that something that was changed in the last few versions? For
   us it was working previously without it.
 * Perhaps it would make sense to adjust the code that checks for plans, so that
   it’s possible to just add on – without a comma? Especially when using “any_plans”,
   it doesn’t make much sense having to add a comma.
 *  Plugin Support [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * (@dimplemodi)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/conditional-content-shortcode-not-working/#post-18239816)
 * Hello,
 * Glad to know that it worked and I could help you into this!
 * Furthermore regarding your concern for the comma then as I mentioned earlier 
   that I have checked with the shortcode you have provided(without comma) and it
   worked properly without any issue. Also there are no recent changes are made 
   regarding the shortcode. As at your end it is working with the comma then I would
   suggest you to keep it the same as it will not cause any issue.
 * Thanks

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

The topic ‘Conditional content shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/armember-membership_1a2538.svg)
 * [ARMember - Membership Plugin, Content Restriction, Member Levels, User Profile & User signup](https://wordpress.org/plugins/armember-membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/armember-membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/armember-membership/)
 * [Active Topics](https://wordpress.org/support/plugin/armember-membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/armember-membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/armember-membership/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/conditional-content-shortcode-not-working/#post-18239816)
 * Status: resolved