WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to put post content result above the shortcodes result? (5 posts)

  1. eugenealegiojo
    Member
    Posted 4 years ago #

    Hi,

    I'm in the development stage of my plugin. I know this is very easy question to an wp expert.

    I created a script where my plugin supports shortcode. My shortcode works fine but I want to place my shortcode content below the post content. Is this possible?

    Just wondering because when I added page and put the shortcode and content like this:
    This is a post content
    [PluginShortcode bar=foo]

    And the result is this:
    Shortcode content text here for my plugin ....
    This is a post content...

    I want my content page looks like this:
    This is a post content
    Shortcode content text here for my plugin ....

    Any ideas from you would be greatly appreciated.

    Thanks in advance.
    Eugene

  2. eugenealegiojo
    Member
    Posted 4 years ago #

    I just got it fixed.

  3. carmelosantana
    Member
    Posted 4 years ago #

    What was the fix?

  4. Clark
    Member
    Posted 4 years ago #

    Yes, please post the fix. I also have this issue.

  5. Clark
    Member
    Posted 4 years ago #

    OK, I found it. Here's the answer. Essentially you cannot use echo() or any function that echo's back some HTML. You have to put that HTML/PHP into a string. Further detail here:
    http://wordpress.org/support/topic/247399?replies=5

Topic Closed

This topic has been closed to new replies.

About this Topic