Using wordpress 4.4.2 and latest pagebuilder.
I’m developing widgets based on the SO Widgets Bundle framework.
In the widget templates, when I try to use get_the_excerpt(), there is some sort of html code inception (hundred of div with id=”pb-POSTID-NUMBER”) and the request times out.
example code (in a widget template):
$extrait = esc_attr(get_the_excerpt());
That line is enough to play havoc.
I realize you may need to see more code to believe me, here is the full template.
Hi Alexandre,
Thanks for letting us know about this. I’ve logged this as a potential bug in our issue tracker. We’ll investigate this as soon as possible and try to come up with a fix.
Hi Alexandre,
Just an update; I’ve tried this locally and unable to replicate. Could you provide more information about the page builder? A layout export with a copy of the widget you’re building would be a huge help for us.
This is a private message.
This is a private message.
This is a private message.
here , via dropbox Private Snippet
Hi Alexandre,
Thank you for that. I’ll run a couple of tests and get back to you some time over the weekend.
I can also confirm the same issue. Caling
or
for posts using the page builder causes some sort of infinite loop and the request times out.
Yep, same here … It took me a while to realize it’s not caused by my bad templating … :)
Any hope for solution ?
I am having the same problem
Hi,
ich have the same issue on “the_excerpt” and if i want to use “$content = apply_filters( ‘the_content’, $content );”.
For the apply_filters-Problem i found a solution in your forum.
@core-team: It looks like that you use queried_object on a place you shouldn’t use it.
Every time i use “apply_filters( ‘the_content’, $content );” it processes the content of the queried-object instead of the content i provide in the filter.
Would be great if you could fix this – its pretty annoying.
I investigated the page-builder code a little.
The problem with “the_excerpt“, “get_the_excerpt” and “apply_filters( ‘the_content’, $content );” is that the global $post variable is used inside “siteorigin_panels_filter_content“.
The developers have to use it cause, the page-builder-content is not directly stored in the page-content, but in the meta-data of the post.
If you want to use “the_excerpt“, “get_the_excerpt” or “apply_filters( ‘the_content’, $content );” there are 2 Solutions.
EXAMPLE