Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Visual builder content not displayed

Open ziuzea87 opened this issue 10 years ago • 6 comments

Hey there, I'm using Unyson for a custom template and I have a query where I some specific custom posts content. There is used Visual builder inside those posts and until today everything worked fine, the_content() displayed content for each post and everything worked perfectly. Now, nothing displayed for the posts. Will appreciate some help on this matter. Thanks.

ziuzea87 avatar Aug 02 '16 20:08 ziuzea87

Hello,

Please edit

wp-content/plugins/unyson/framework/extensions/shortcodes/extensions/page-builder/class-fw-extension-page-builder.php

replace this line with

} else {
    foreach ($posts as &$post) {
        $post->post_content = $this->get_post_content_shortcodes($post);
    }
}

and let us know if it fixes the problem.

ghost avatar Aug 03 '16 07:08 ghost

Look like its working. Let me try my clients site as well

Ataurr avatar Aug 03 '16 07:08 Ataurr

Yep, that did the trick. Thanks.

ziuzea87 avatar Aug 03 '16 07:08 ziuzea87

I removed that foreach as a performance improvement but I will add it back because it breaks some themes.

ghost avatar Aug 03 '16 08:08 ghost

https://github.com/ThemeFuse/Unyson-Extensions-Approval/issues/245

ghost avatar Aug 03 '16 08:08 ghost

Please release as soon as.

Ataurr avatar Aug 03 '16 09:08 Ataurr