Title: Shortcode bug (with patch)
Last modified: June 16, 2018

---

# Shortcode bug (with patch)

 *  [macoafi](https://wordpress.org/support/users/macoafi/)
 * (@macoafi)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-bug-with-patch/)
 * The giving form shortcode always displays the form at the top of the page, even
   when you try to have a preceding paragraph or two. It’s because you’re using 
   echo and not return.
 *     ```
       --- shortcodes.php	2018-06-16 16:44:04.553271792 -0700
       +++ shortcodes.php	2018-06-16 16:42:13.153698445 -0700
       @@ -16,7 +16,7 @@
        			exit();
        		}
   
       -		echo '<div id="breeze_giving_embed" data-subdomain="' . $wt_option_breeze_subdomain . '"></div>';
       +		return '<div id="breeze_giving_embed" data-subdomain="' . $wt_option_breeze_subdomain . '"></div>';
        	}
       ```
   

The topic ‘Shortcode bug (with patch)’ is closed to new replies.

 * ![](https://ps.w.org/wt-display-breeze/assets/icon-256x256.png?rev=1557184)
 * [Breeze Display](https://wordpress.org/plugins/wt-display-breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wt-display-breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wt-display-breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/wt-display-breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wt-display-breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wt-display-breeze/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [macoafi](https://wordpress.org/support/users/macoafi/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-bug-with-patch/)
 * Status: not resolved