beewax47
Forum Replies Created
-
Thanks Tim, I’ve moved this over to the 365 plugin forum.
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.
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 4 years, 9 months ago by beewax47.