Not all shortcodes in the rules list

I’ve setup shortcodes to Not Display by default in Options and then tick the ones I want to show for each access level.

The problem I’m having is that not all of the short codes registered via other plugins show in the list that Membership displays on the Access Level rules page. Specifically, the one I’m trying to use is [youtube_sc]

Any ideas?

  • Barry
    • DEV MAN’s Mascot

    Which plugin generates this shortcode? Some plugins are set up to only register their shortcodes on the public side of wordpress instead of in both public and admin areas and so the membership plugin can’t see them on the admin side (which it needs to do in order to show them in the rules).

    For the ones that we have spotted that do this, we’ve created small addons. They can be copied and modified so that any other shortcodes can be fixed.

    Have a look at the gravity forms and contact form addons (if you look at the add ons page, you will see the filename for the add on in the list – then look for that file in the membershipincludes/addons directory).

  • DavidM
    • DEV MAN’s Mascot

    Hi brianmyrick,

    That’s strange, I’m not sure why the shortcode wouldn’t show if it’s registered in WordPress as a shortcode. Just to check, you’re referring to the following plugin, correct?

    http://wordpress.org/extend/plugins/youtube-shortcode/

    Also to check, would it work for you to simply link directly to the video through the WordPress editor? WordPress should automatically convert it as an embedded media file.

    And that said, as a quick workaround, you can create shortcodes at Membership > Options, then tick/untick those shortcodes in your access levels, and proceed to wrap those other shortcodes with these Membership specific shortcodes, sort of like this:

    [my_membership_sc][youtube_sc][/my_membership_sc]

    Would either of those methods work for you?

    -David