Reply To: Types&Views displays automatic map when trying to display only individual fields

Home Forums MapPress Support Types&Views displays automatic map when trying to display only individual fields Reply To: Types&Views displays automatic map when trying to display only individual fields

#10099
Chris
Keymaster

Hi, I don’t know much about Types & Views, but I can explain that the MapPress automatic map always adds a map to the post content except in two cases:

1) If there’s already a mappress shortcode on the post/page

2) The post/page is an excerpt (to determine this, MapPress checks if the standard WP filter for excerpts is active – and it’s probably not used by T&V)

You could try putting a [mappress] shortcode into the particular post you don’t want automated.  Or you can switch off automatic map display and use shortcodes.

There’s a function remove_shortcode() in WordPress that can be used to disable a shortcode.  You could add it to your functions.php and use some criteria for the posts where you want to suppress it.

Finally, the T&V folks might be able to tell you how to disable a specific shortcode in the template, it seems like that might be a common request.