Shortcode Loop
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
4Hi Emrl
Which plugin is outputting the shortcode? We’ll take a look and advise further.
Thanks :)
Hi Andrew, it is a custom shortcode of ours.
It basically loads posts via
and then loops over them and uses
apply_filters('the_content', get_the_content($id))to output the post content.
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.
Thanks for the update. The challenge is that Page Builder outputs using
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.