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
August 4, 2012 at 3:40 am
#10110
Hi,
I don’t know how to identify the posts you’re using with T&V. Maybe you can assign them to a particular category or post type. If you want to use a variable, you can just add something like this to the mappress ‘the_content’ filter:
if ($myvar == true) return;
Or, you can add your own filter to remove the MapPress ‘the_content’ filter. For example, if you want to always suppress MapPress when the post type = ‘mytype’ add this to functions.php:
function myfunc() { global $post, $mappress; if ($post->post_type == 'mytype') remove_filter('the_content', array($mappress, 'the_content'), 2); } add_filter('the_content', 'myfunc', 1);