August 31, 2014 at 2:09 am #311423
I have am using the layout builder to create a page.
On that page I have an opening shortcode in a “code block” and it works.
At the bottom of the page I have the closing shortcode in another “code block” but it won’t work.
All it does is display the shortcode [/pc-pvt-content]
How can I get the closing shortcode to render properly??
MitchAugust 31, 2014 at 2:14 am #311424September 1, 2014 at 3:40 pm #311876
I have created a private page called “Test page” and duplicated your page. Then removed the bottom Code block element and it seems like it did not break the layout. Please review “Test page” and remove second code block from your original page.
YigitSeptember 2, 2014 at 2:03 am #312019
Actually I NEED the closing shortcode.
That is the problem.
The layout builder works fine except it WILL NOT render the closing shortcode.September 4, 2014 at 7:50 am #313206
You’d need to put both the opening and closing shortcodes inside one code block element.
JosueSeptember 4, 2014 at 5:04 pm #313459
I don’t understand how it can render the code fine in the first block without the closing tag and why it can’t render the code in the second block?
This seems to be a flaw.
And I can’t put it in one block.
It needs to wrap around the content.September 4, 2014 at 8:12 pm #313566
The code element is not meant to be used that way. Have you tried using Text Blocks instead? or building the page without the Layout Builder (using Magic Wand shortcodes), that way you can freely put your custom shortcode wherever you want in the content.
JosueSeptember 4, 2014 at 10:08 pm #313611
I did try a Text Block … but that didn’t work either.
If I go back to the normal editor it doesn’t help.
And, the normal editor might work for you or me, but not for a client – lol
It must have something to do with using a shortcode to wrap around more shortcodes around more shortcodes that is messing it up :-(
Thanks for your help though!!
PS – thanks for keeping your theme up-to-date!!! WP 4.0 is out and Enfold is good to go!! Keep up the updates/upgrades. It makes it easy to recommend you to clients!!!
The topic ‘Shortcode issue’ is closed to new replies.