Skip Navigation

[Resolved] WPBakery shortcodes appearing when using ajax filtering for results

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1292861
Treat-nmd-bug.PNG

I am trying to:
Create a search form that uses ajax filtering and show information such as the post/page title, featured image, excert/begginging of page content and post type.

Link to a page where the issue can be seen:
hidden link

I expected to see:
When page first loads all content is shown as expected. However if you use the filter options and select pages, any page that has been built using WP Bakery shows WP Bakery shortcode inside of the excerpt. This only happens when using the ajax filtering and if I turn the ajax filtering off and use manual page refresh instead it all works as aspected. However the ajax filtering is a vital part of the usability of our search form. The same problem occurs when using any ajax pagination and a WP Backery page is involved.

Instead, I got:
Read explanation above.

#1292959

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Michael,

This is actually a known issue with Toolset and visual composer. The problem is that Visual Composer doesn't work well with ajax reloads.

You can try this solution below by adding it to your functions.php file but the best thing to do is to get in touch with VC support team or to not use Ajax reloads.

add_action('init', 'add_mapped_shortcodes_on_init');
function add_mapped_shortcodes_on_init() {
WPBMap::addAllMappedShortcodes();
}

Thanks,
Shane