Call a post content with pagebuider filter on an another post page
Hi guys,
I’ve got an issue with page builder. I’ve tried to call an associated post on an another post via single template with the following code :
$post_id = 37;
$queried_post = get_post($post_id);
$content = $queried_post->post_content;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
echo $content;
I’ve also tried to with
$content = apply_filters(‘wpautop’, $content);
but whatever, it always shows the alternative content and not the pagebuilder result.
Does someone know a solution to fix this issue ?
Many thanks ;)
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium