Title: Controlling shortcode output location
Last modified: August 21, 2016

---

# Controlling shortcode output location

 *  Resolved [DeBAAT](https://wordpress.org/support/users/debaat/)
 * (@debaat)
 * [12 years ago](https://wordpress.org/support/topic/controlling-shortcode-output-location/)
 * First, thanks for this wonderful plugin.
 * Second, I have an issue with the location of the output generated by the shortcodes.
   
   When I put the shortcode somewhere in the middle of a post, the sortcode output
   is displayed on top of the post and all other text of the post appears below 
   the generated output.
 * Eg. consider the following text in a post:
 *     ```
       Text before PDB_Shortcode
       [ PDB_Shortcode ]
       Text after PDB_Shortcode
       ```
   
 * The result shown is then:
 *     ```
       Output from [ PDB_Shortcode ]
       Text before PDB_Shortcode
       Text after PDB_Shortcode
       ```
   
 * Do you have an easy way on how to solve this?
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

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

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [12 years ago](https://wordpress.org/support/topic/controlling-shortcode-output-location/#post-4918154)
 * This is not how it normally works, so there is something specific to your case
   causing this. Can you share a link so I can see it happening?
 *  Thread Starter [DeBAAT](https://wordpress.org/support/users/debaat/)
 * (@debaat)
 * [12 years ago](https://wordpress.org/support/topic/controlling-shortcode-output-location/#post-4918165)
 * Thanks for this quick reply.
 * And it seems you are right. Sorry I didn’t test this before. I copied your shortcode
   source to create my own. And now it looks like it only happens with my own shortcode
   and not yours.
 * At first I thought it might be caused because of the ‘echo’ and inline http code
   used. ‘Normally’ I would expect the source code to build the $class->output string
   which is to be returned by the shortcode function.
 * But now I have to dig deeper in my own code.
    Sorry again to have blamed you.
 *  Thread Starter [DeBAAT](https://wordpress.org/support/users/debaat/)
 * (@debaat)
 * [12 years ago](https://wordpress.org/support/topic/controlling-shortcode-output-location/#post-4918198)
 * Solved the issue.
    So just to help out others: I forgot the correct use of “ob_start();”.

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

The topic ‘Controlling shortcode output location’ is closed to new replies.

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

## Tags

 * [output](https://wordpress.org/support/topic-tag/output/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [DeBAAT](https://wordpress.org/support/users/debaat/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/controlling-shortcode-output-location/#post-4918198)
 * Status: resolved