Whenever i try to add a WP_Widget which renders Posts, using the_content or the_excerpt, only the shortcode (wr_widget) of this widget is evaluated. The outer structure, including all wr_rows and wr_columns is not evaluated and displayed as plain text on the page.
one simple way to reproduce this, is to add a simple <?php the_excerpt() ?> in the WP_Widget_Recent_Posts (approx line 717) in default-widgets.php and add it to a wr-pagebuilder-layout.
most template-tags seem to be fine. anything utilizing the_content seems to break. my best guess yet would be the order of the filters registered on the_content. some context worth looking at seems to be in the pagebuilders core/core.php stating:
// remove placeholder text which was inserted to < and >
$wr_pagebuilder_content = WR_Pb_Utils_Placeholder::remove_placeholder( $wr_pagebuilder_content, 'wrapper_append', '' );
$wr_pagebuilder_content = preg_replace_callback(
'/\[wr_widget\s+([A-Za-z0-9_-]+=\"[^"\']*\"\s*)*\s*\](.*)\[\/wr_widget\]/Us', array( 'WR_Pb_Helper_Shortcode', 'widget_content' ), $wr_pagebuilder_content
);
Hi there!
Whenever i try to add a
WP_Widget
which renders Posts, usingthe_content
orthe_excerpt
, only the shortcode (wr_widget
) of this widget is evaluated. The outer structure, including allwr_row
s andwr_column
s is not evaluated and displayed as plain text on the page.one simple way to reproduce this, is to add a simple
<?php the_excerpt() ?>
in theWP_Widget_Recent_Posts
(approx line 717) indefault-widgets.php
and add it to a wr-pagebuilder-layout.it should read like this:
most template-tags seem to be fine. anything utilizing
the_content
seems to break. my best guess yet would be the order of the filters registered onthe_content
. some context worth looking at seems to be in the pagebuilderscore/core.php
stating:do you have any idea what is causing this?