Hi Caridad,
Automatic maps are a feature of both the free and pro versions of MapPress. Automatic maps relate to Problem #2 that I presented. Creation of automatic maps depends on the existence of a user-configured custom field for the address, or fields for lat and lng. If a post has valid values in either the address or the lat/lng fields and automatic maps are enabled, a map is displayed. The function "the_content" in mappress.php shows when these maps are displayed. In the context of Types and Views, the problem is that when a view is set up to return just a particular field, not an entire post, an automatic map is probably not desired. Chris, the author of MapPress has been very helpful and suggested that I could address this problem by adding some code to the mappress 'the_content' filter, such as
if ($myvar == true)
return;
I'm not quite sure where to put that code, though. Any suggestions? I'm still corresponding with Chris on that. I do see how modifying mappress.php could address this, but I believe Chris wants to address this outside of the mappress core.
Mashups are a feature only in the pro version. Mashups relate to Problem #1 that I presented. There does seem to be a direct conflict between MapPress and Types and Views here. When I do the mashup before the view, the inner view produces No posts found. When I do the mashup after the view, the view produces the desired result, and so does the mashup. All well and good unless you want the mashup at the top of the page. This makes me think there is a conflict with the query. Any other ideas? I tried to save the query, do the mashup, then restore the query but that didn't help. Maybe you can suggest a change to the shortcodes that I defined:
function qs_save_query() {
global $wp_query, $qs_temp_query;;
$qs_temp_query = clone $wp_query;
// return $qs_temp_query;
}
add_shortcode( 'save_query', 'qs_save_query' );
function qs_restore_query() {
global $wp_query, $qs_temp_query;;
$wp_query = "";
$wp_query = clone $qs_temp_query;
// return $qs_temp_query;
}
add_shortcode( 'restore_query', 'qs_restore_query' );
I am running the MapPress pro version 2.38.6. This version was provided by Chris for testing some new features regarding map icons and is not generally available. However, perhaps you and Chris could exchange your full version plugins in the interest of improving compatibility and support for your common customers. You can contact Chris at hidden link.
The URL from which you can get development versions of the free MapPress is http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/developers/.
Thanks for your help.
Brad