• Resolved KS

    (@karl19)


    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

    (@dimplemodi)

    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

    (@karl19)

    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

    (@dimplemodi)

    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)
  • You must be logged in to reply to this topic.