This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Shortcode Loop

9 years ago · Last reply by Andrew Misplon 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 9 years, 10 months ago

    Hi Emrl

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

    Thanks :)

  2. emrl 9 years, 10 months ago

    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. emrl 9 years, 10 months ago

    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. Andrew Misplon Staff 9 years, 9 months ago

    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.

Have a different question or issue?

Start New Thread