Skip Navigation

[Closed] I see html code when i click on cities "Milano" "Monza" "Online"

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 1 year, 9 months ago.

Assisted by: Nigel.

Author
Posts
#2666497
Screenshot 2023-11-20 alle 11.06.46.png

Hello, i updated all website of my client with your new Toolset update but in this page "hidden link", when i click on cities "Milano - Monza - Online - ecc) i see html code instead "Seminari" created with Toolset. Could you help me? Thanks

#2666537

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

The problem is that the shortcodes of WP Bakery (such as vc_row) don't get parsed after an ajax update. WP Bakery doesn't register the shortcodes during ajax updates.

Currently, the only solution is to edit your View and have it update via a page refresh and not via ajax.

It used to be the case that we could apply a workaround, whereby we could add a small PHP code snippet that called the WP Bakery method WPBMap::addAllMappedShortcodes() to register the shortcodes, but that stopped working in WP Bakery version 6, and we no longer have a workaround available.

If you need the results to update via ajax you could contact WP Bakery support and ask them for an alternative method that can be used to register WP Bakery shortcodes which works with current versions.

If they are able to provide that we can help with applying that to your site for Views filtering via ajax.

#2667119

Hello Nigel and thanks for support, unfortunately i have no license of WP Bakery because i have it included in my premium theme. I talked about this problem with my theme assistance but they told me that the problem is about the third part plugin and his compatibility with WP Bakery. My website now doesn't work and i don't know what i've to do to let it works.

#2667147

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I took another look and it seems like the previous workaround does work after all, I'm not sure what happened previously to prevent it from working.

Please edit your theme's functions.php file and add this code:

/**
 * For front-end ajax requests register WPBakery shortcodes
 */
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
	
	add_action('init', 'add_mapped_wpb_shortcodes_on_ajax', 11 );
	function add_mapped_wpb_shortcodes_on_ajax() {
		if ( class_exists('WPBMap') ){
			WPBMap::addAllMappedShortcodes();		
		}
	}
}

That should fix the issue.

#2667291

Hello Nigel and thanks for support. Unfortunately the code doesn't work on my website. I'm so sorry but i have to ask the refound of the price paid. I have to search another solution for my website.

How can i ask the refound? Thanks

#2667499

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I'm surprised it doesn't work, I re-tested it on my local WP Bakery test site, where it works correctly.

If you would like me to access your site and check that it has been applied correctly I can do that, let me know and I will set up a private reply to get site credentials from you.

And a reminder that the issue only occurs with ajax updates; you can avoid the problem by updating via page refresh rather than ajax.

If you prefer to request a refund you can do so from your account page.

The topic ‘[Closed] I see html code when i click on cities "Milano" "Monza" "Online"’ is closed to new replies.