Title: Shortcode echoing, not returning
Last modified: April 30, 2021

---

# Shortcode echoing, not returning

 *  Resolved [blindmikey](https://wordpress.org/support/users/blindmikey/)
 * (@blindmikey)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-echoing-not-returning/)
 * The shortcode is echoing content (so the output is out of order) instead of returning.
 * I fixed this by putting ob_start(); right before the outputted html markup in
   the shortcode function; and a $return = ob_get_clean(); at the end of the html
   markup.
 * then I added return $return; at the end of the shortcode function. Everything
   is great now.

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

 *  Plugin Author [GS Plugins](https://wordpress.org/support/users/gsplugins/)
 * (@gsplugins)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/shortcode-echoing-not-returning/#post-14388313)
 * Hi [@blindmikey](https://wordpress.org/support/users/blindmikey/)
 * Thanks for the concern.
    We will take care of the issue soon.
 * Regards / Sarwar
 *  Plugin Author [GS Plugins](https://wordpress.org/support/users/gsplugins/)
 * (@gsplugins)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-echoing-not-returning/#post-14462115)
 * Hi [@blindmikey](https://wordpress.org/support/users/blindmikey/)
 * Released new version –
 *     ```
       VERSION 3.0.7 [20TH MAY 2021]
       [Added] : Direction Left to Right for Slider & Ticker Theme (Pro feature).
       [Fixed] : CLS issue for unsupported CSS Property: border-radius
       [Fixed] : Lazy-load issues with images at Grid layout.
       [Fixed] : Output buffer issue.
       [Added] : Identification class to Logo images.
       [Updated] : Increased Sliding Speed and Autoplay pause value to max 10,000
       ```
   
 * Please check & let us know.
 * Thanks / Sarwar

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

The topic ‘Shortcode echoing, not returning’ is closed to new replies.

 * ![](https://ps.w.org/gs-logo-slider/assets/Icon-256x256.png?rev=2971147)
 * [Logo Slider - Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation](https://wordpress.org/plugins/gs-logo-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gs-logo-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gs-logo-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/gs-logo-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gs-logo-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gs-logo-slider/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [GS Plugins](https://wordpress.org/support/users/gsplugins/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/shortcode-echoing-not-returning/#post-14462115)
 * Status: resolved