• Resolved DeBAAT

    (@debaat)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    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

    (@debaat)

    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

    (@debaat)

    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.