• Resolved lofesa

    (@lofesa)


    I have posted this on github too.
    The Visual Composer integration does not work since version 4.8 of VC.
    The _wpb_vc_js_status don′t exist more.
    I have tried this:

    function remove_visual_composer_shortcodes( $content ) {
    
            global $post;
            if ( $post && preg_match( '/vc_row/', $post->post_content )) {
            $content = preg_replace('/\[\/?vc_.*?\]/', '', $content);
            }
    
        return $content;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    Strange! I’ve just checked VC version 5.5.5, the Schema seems to be working as expected, and I still can see that _wpb_vc_js_status post meta field still exists.

    Another thing; in the latest version of Schema 1.7.2, we’ve added a check to remove all shortcodes, which should work for VC as well, without the need for that specific function to run.

    I would like you to try something, try saving the plugin settings once, then check again one of your VC pages.

    Thread Starter lofesa

    (@lofesa)

    Hi
    You are rigth. I have comented the
    require_once SCHEMAWP_PLUGIN_DIR . 'includes/integrations/visual-composer.php';
    line at schema.php , saved the schema plugin settings and tested structured data in pages with visual composer and is ok.
    Seems I have old post with schema saved with shortcodes.
    Relative to the _wpb_vc_js_status I read this and see that VC plugin uses some like this to test if VC is in the post and thus load their assets.

    Plugin Author Hesham Zebida

    (@hishaman)

    Glad to hear that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Visual composer’ is closed to new replies.