WordPress.org

Ready to get started?Download WordPress

Forums

ShortCodes UI
[resolved] Positioning (2 posts)

  1. pavlosb
    Member
    Posted 2 years ago #

    I create a shortcode with php code to display some custom-type posts.
    The shortcode works fine but it keeps going in the top of page instead of where i put it. I know that it may be a css issue but i'm really stuck here.
    See the page http://informatics.inline.gr/testcontact
    (The lorem ipusm paragraphs should be firtst)

    Thanks,
    Pavlos

    http://wordpress.org/extend/plugins/shortcodes-ui/

  2. Bainternet
    Member
    Plugin Author

    Posted 2 years ago #

    This problem comes form closing php tags which is something you should avoid, meaning instead of doing this:

    ?>
    <span> some html</span>
    <?php

    do it like this:

    $out = '<span> some html</span>';
    return $out;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic