Title: Shortcode problem
Last modified: September 13, 2018

---

# Shortcode problem

 *  Resolved [Jeff North](https://wordpress.org/support/users/jayjayau/)
 * (@jayjayau)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/)
 * If a page consists only of a shortcode then the editor attempts to display the
   results of the shortcode before the actual editor area.
    If the page consists
   of other text and the shortcode is embedded then the editor works as expected

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10689615)
 * Hi, can you paste in a copy of the shortcode you’re seeing this problem with?
 *  Thread Starter [Jeff North](https://wordpress.org/support/users/jayjayau/)
 * (@jayjayau)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10689996)
 * 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>&nbsp;</p>
       ```
   
 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10692986)
 * 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?
 *  Thread Starter [Jeff North](https://wordpress.org/support/users/jayjayau/)
 * (@jayjayau)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10693100)
 * 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.
 *  [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10700210)
 * 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](https://wordpress.org/support/users/clorith/), are you seeing previews
   of shortcodes? I’m not, and [I didn’t think that was being included in v1](https://github.com/WordPress/gutenberg/issues/1054).
    -  This reply was modified 7 years, 8 months ago by [Ian Dunn](https://wordpress.org/support/users/iandunn/).
 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10707007)
 * Ahh, you’re right [@iandunn](https://wordpress.org/support/users/iandunn/), I
   was so certain we’d already implemented it when server side renders were added,
   so my apologies for the confusion there 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Shortcode problem’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-problem-32/#post-10707007)
 * Status: resolved