Hi, can you paste in a copy of the shortcode you’re seeing this problem with?
Problem page: the HTML code for the page is: <p>[U3APageCourse]</p>
OK page: the HTML code is:
<p>U3A Maitland was formed in 2014.</p>
<p><need more info here></p>
<p>We currently have [U3AMemberCount] members and run [U3ACourseCount] courses/activities over the year. We cover the Hunter Valley region and our members are generally within Maitland and it's surrounding townships. Our members come from:</p>
<p>[U3AMembershipSpread]</p>
<p> </p>
This is actually expected behavior, Gutenberg tries to render any standalone shortcodes to take away the “mystery” from them, so you know what it will look like in your post it self.
it’s essentially the same as using the shortcode block by it self.
Is there something not working with it, are you seeing any errors or similar?
Since I can’t paste images in this forum then I’ll have to use lengthy descriptions.
The new editor destroys the admin screen completely. The left admin panel is still visible but all the links are gone. Just one big black sidebar where the admin functions should be.
My shortcodes are designed to render the full page on information and links.
The editor renders the html with the embedded styles within the shortcode. It does not include the stylesheet from the appropriate theme. This causes the rendered html to bear no resemblance to the final output.
The rendered html appears behind the admin sidebar, and the editor panel on the right, so you can’t get at some of the shortcode’s functionality. In other words, the editor renders the html to the screen’s full width which is not how it will eventually appear on the web site.
Can you share the plugin that adds that shortcode, or at least the HTML that the shortcode renders, so that I can reproduce it? I wasn’t able to find the plugin.
If it’s a custom plugin, can you also check if the add_shortcode callback function is returning the shortcode results, or echoing them? If it’s the latter, that’s a bug in the shortcode, which might explain this behavior.
@clorith, are you seeing previews of shortcodes? I’m not, and I didn’t think that was being included in v1.
-
This reply was modified 7 years, 8 months ago by
Ian Dunn.
Ahh, you’re right @iandunn, I was so certain we’d already implemented it when server side renders were added, so my apologies for the confusion there 🙂