Support » Fixing WordPress » Shortcodes execution order is correct, result is wrong

  • Resolved merianos


    I have create three shortcodes for my blog posts.

    The first is columns, the second is styled <hr> and the third is a latest posts slideshow.

    In my test post, I have enter the shortcodes in the following order:

    [COLUMNS size=”1/2″]content here[/COLUMNS]
    [COLUMNS size=”1/2″ isLast=”1″]Content here[/COLUMNS]
    [HR style=”dotted”]
    [LATESTPOSTS options here]
    [HR style=”default”]

    but in my HTML result I getting that

    Here is the latest posts slideshow
    <div class=”c_1_2″>content here</div>
    <div class=”c_1_s last”>Content here</div>
    <hr class=”dotted” />
    <hr />

    As you can see, I get the elements in my HTML with differenct order than this in my posts.

    Also, I have use the normal way to create the short codes, as that discribed by the WordPress.

    This post here is, just for ask if there is any known issue for that problem. Is there anybody else that has that same issue ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael


    Forum Moderator

    this is marked as ‘resolved’ – if so, please post the solution.

    if the problem still exists:
    – where does the [LATESTPOSTS options here] shortcode for the ‘latest posts slideahow’ come from? – plugin? – theme?

    if you programmed the shortcode yourself, please post the full code.

    shortcodes have to return the result – not echo.


    Just wanted to say a huge ‘thank you’ for the last line of your comment, you saved the day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcodes execution order is correct, result is wrong’ is closed to new replies.