Maps seem to be broke on single listing pages

[ad_1]

Hello @sfordev.

Can you please provide more details on how to include the shortcode and which shortcode you are using exactly?

It’s best to provide some screenshots so that I can understand the issue.

Please do not assume that I know all the plugins and how to use them. The more detailed your information is, the better I can reproduce the issue and fix it if necessary (and, if there is one).

This is the implementation, on a new Listing within WPCasa, with no other content.

This is what renders on the front-end:

When the same shortcode is used in a new WP page, the map renders correctly:

Thank you @sfordev for the details.

I could reproduce this and have to write, this is not an issue.

With WordPress security rules in mind, we needed to sanitze the output of the listing content in order to pass plugin verification and be listed in the WordPress plugin directory again.

This sanitization required declaring the allowed HTML tags for the content. MapPress uses its own html tag <mappress-map></mappress-map> which is of course not in the list of allowed html tags. For this reason, the HTML code of the map fails the sanitization and is removed.

But there is a solution for you: you can expand the allowed HTML tags with the WordPress filter wpsight_allowed_html_tags. Feel free to add the HTML tags you need to show the MapPress map again.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer