962 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
EireStudio says

Hey Guys,

I have a shortcode like so: http://pastebin.com/H9yKjWcn

And it display fine and dandy, but the table always appears at the very top of the page regardless of where I insert it.

For example, I insert the shortcode [nodeposittable] after the first paragraph and it still appears above the first paragraph, always.

Any ideas?

3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says
RedHenry said
Hey Guys,

I have a shortcode like so: http://pastebin.com/H9yKjWcn

And it display fine and dandy, but the table always appears at the very top of the page regardless of where I insert it.

For example, I insert the shortcode [nodeposittable] after the first paragraph and it still appears above the first paragraph, always.

Any ideas?

Shortcodes should return a string. You cannot output the html like you do in the templates or by using echo.

Just return the whole markup as a string, otherwise, like happens to you, the markup output is printed before the content (outside of the html structure of your content), where it should be.

Parker

962 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
EireStudio says

Bingo, thanks Parker, much appreciated!

3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says
RedHenry said
Bingo, thanks Parker, much appreciated!

You’re welcome ;)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by