Using membership shortcodes to control visibility

I’m trying to use shortcodes via a membership plugin PilotPress from OntraPort to control which links are visible to users based on their membership level, but I can’t seem to get it to work. I’ve tried creating the links as raw elements and wrapping them in the shortcodes but that doesn’t work. Any suggestions?

Example of the shortcode:
[show_if has_one=‘platinum’] content [/show_if]

Hi There @Hyperbits

Thanks for writing in! We don’t provide support for 3rd party plugins. However, I can provide some few tips to isolate your issue.

  1. Try testing that short-code using a Text element in Cornerstone.

  2. Try testing it on a general WordPress page without Cornerstone.

  3. Try testing it on a different theme to isolate the issue further.

If you’re still having issues, I suggest you to contact the plugin author for assistance on this.

Thanks!

The Pilot Press short-codes work everywhere except inside of Cornerstone…

The problem is within Cornerstone. There is nowhere to put the code before and after a specific elements (like an image in this case). I would have to use Raw elements and when I try that, it simply disappears every-time.

All I am trying to do is hide some buttons on a course dashboard I created using images as buttons.

This is more of a work flow problem with page builders in general. The most common work around to this is to create your protected content as a global block, and then use the membership shortcode and global block shortcode inside of a text element or raw element in Pro. That way you can restrict any element you want, include whole sections.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.