Home>Support>Shortcode Loop

Shortcode Loop

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello, I am having the same problem described here: https://siteorigin.com/thread/shortcodes-doesnt-work-with-pagebuilder/#comment-43408

I however cannot easily move the shortcode from the content to the template file.

The shortcode I am loads some testimonial posts and loops over them and outputs their content.

Some content here

[testimonials limit="3"]

More content here

There should not be any recursion happening.

Thank you.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Emrl

    Which plugin is outputting the shortcode? We’ll take a look and advise further.

    Thanks :)

  2. 9 years, 2 months ago emrl

    Hi Andrew, it is a custom shortcode of ours.

    It basically loads posts via

    get_posts

    and then loops over them and uses

    apply_filters('the_content', get_the_content($id))

    to output the post content.

  3. 9 years, 2 months ago emrl

    I have also noticed that using a Gravity Form shortcode for a form that has a radio group “Other” option, the “Other” option is output 3 times instead of once. With Page Builder disabled it outputs normally. I think that these problems are related to my original problem as well.

  4. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Thanks for the update. The challenge is that Page Builder outputs using

    the_content

    function. Perhaps we should be coming in at priority 9 so you can come in later. Can you perhaps send me your code so we can take a look and see if we can’t make Page Builder better in this regard. Perhaps a ZIP file on the cloud somewhere. You can use the Private Reply checkbox bottom right.

    Thanks for reporting the Gravity issue, I haven’t seen that before and will take a look.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More