• Resolved beewax47

    (@beewax47)


    Hi there,

    I am using the shortcode [ppwp passwords=”password1 password2″]
    Your protected content [/ppwp] to hide the content on a page, which is working fine. I add this in using the ‘Classic Editor’. However, frustratingly when my customer adds content on the page using the WP Bakery page builder ( this is how they manage their content) and re-publishes…it breaks the shortcode.

    WP Bakery seems to wrap the shortcode in [VC Column] and [VC Row] and adds the shortcode between a [text] block – which ultimately breaks the shortcode!!

    How can I add the shortcode on the page, update the page using the page builder and the shortcode not be affected!

    Any help greatly received as my customer needs this working.

    I can’t show you the page/URL – as the content is sensitive, unfortunately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter beewax47

    (@beewax47)

    Update:
    So when you publish the page after using WPBakery page builder…the PPWP shortcode gets wrapped in:

    [vc_row][vc_column][vc_column_text][ppwp passwords=”MyPassword”][/vc_column_text][/vc_column][/vc_row]

    [vc_row][vc_column][vc_column_text][/ppwp][/vc_column_text][/vc_column][/vc_row]

    which breaks and throws back the page error: [ppwp] Empty content, invalid attributes or values

    • This reply was modified 3 years, 10 months ago by beewax47.

    Hello @beewax47,

    Thanks for reaching out to us.

    It looks like a conflict during the page’s setup.

    Do you mind dropping us an email to hello(at)preventdirectaccess.com with a screenshot of how you build up the page’s content using Bakery page builder?

    We look forward to your reply.

    Hello @beewax47,

    Just to follow up, how’s everything going on your side?

    Anyway, here’s a tutorial on how to password protect content sections with WPBakery page builder.

    Please let us know if it works for you.

    Thread Starter beewax47

    (@beewax47)

    Hi there,

    Firstly, sorry for the late reply…I was waiting for an email to prompt me I had a reply! Thank you.

    I will fire off an email with screenshots now.

    To cover-off my issue.

    Your first tutorial on shortcode mapping doesn’t work for me – as I want to protect a whole page, which has different layout elements – rows and columns etc. As you pointed out, this only works for protecting content in a simple text block.

    I have wrapped the shortcode using the classic mode, which works fine. However, as most non-tech users – my customer uses WP Bakery to (backend Editor) to edit the content. When this is published, it breaks the plugin. It seems to add rows around the shortcode.

    So in classic editor, I enter:

    [ppwp passwords=”password1 password2″]

    All of my layout code

    [/ppwp]

    Publish, works fine!

    If changes are then made using WP Bakery Backend Editor and re-publish, the code looks like this:

    [vc_row][vc_column][vc_column_text][ppwp passwords=”password1 password2″] [/vc_column_text][/vc_column][/vc_row]

    All of my layout code

    [vc_row][vc_column][vc_column_text][/ppwp][/vc_column_text][/vc_column][/vc_row]

    …and this seems to break the plugin and throws back the error [ppwp] Empty content, invalid attributes or values

    Hope that makes sense.

    The issue is resolved with David @beewax47 via email.

    Just an update for other users with a similar issue, there are 2 ways to password protect content sections with WP Bakery Page Builder.

    1. Wrap your content sections with our shortcode and settings option enabled (recommended)
    2. Create a shortcode element inside WPBakery

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcde breaks when using WP Bakery page Builder’ is closed to new replies.