WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Shortcodes execution order is correct, result is wrong (3 posts)

  1. 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

    <div>
    Here is the latest posts slideshow
    </div>
    <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 ?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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.

  3. FreestyleMD
    Member
    Posted 5 months ago #

    alchymyth,

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

Topic Closed

This topic has been closed to new replies.

About this Topic