Title: single vs. global map &#8211; no difference ?!?
Last modified: August 20, 2016

---

# single vs. global map – no difference ?!?

 *  Resolved [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/)
 * Am I understanding something wrong here?!?
    On single pages I used this in template:
 * `<?php echo GeoMashup::map('height=270&width=270&zoom=11&add_overview_control
   =false&add_map_type_control=false&map_content=single');?>`
 * and on the homepage this (through a widget):
 * [geo_mashup_map height=”300″ width=”300″ zoom=”10″ add_overview_control=”false”
   add_map_type_control=”false” map_content=”global” radius_km=”100″]
 * However, there is NO difference between the 2! Both show all markups from ALL
   posts (so basically the global map)!
 * Wasn’t the single one supposed to only show the markups from that particular 
   post only ??
 * I really do not understand how is this supposed to work …
 * [http://wordpress.org/extend/plugins/geo-mashup/](http://wordpress.org/extend/plugins/geo-mashup/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/single-vs-global-map-no-difference/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/single-vs-global-map-no-difference/page/2/?output_format=md)

 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223151)
 * There’s an explanation here:
 * [http://code.google.com/p/wordpress-geo-mashup/wiki/TagReference#Map](http://code.google.com/p/wordpress-geo-mashup/wiki/TagReference#Map)
 * I’m guessing you just want to add map_content=single in your template tag.
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223190)
 * hmm … but I did add that map_content=single in the tag where the single map should
   be showing (see the 1st code snippet above)
    that was exactly my issue … with
   or without that “single” inside the tag, the only map which is showing is the
   global map .. 🙁 are there any further constraints about the single map to show(
   like does it have to be inside the loop, or in a special location etc? ) Thanks!
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223227)
 * If you’re getting a global map with map_content set to single, that may be a 
   bug. Can you give me a link to an example?
 * When you ask for a single map outside the loop, the last post to be displayed
   is used for the location. If that’s not the right post, you can set object_id
   to the ID of the post you want used. It the post doesn’t have a location saved,
   you won’t get any map at all.
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223260)
 * It is really not working … tried with both map_content=single and map_content
   =contextual … I am always getting ONLY the global map no matter where and which
   kind of code I use!
 * I have some custom post types defined (the map part shows correctly under the
   post edit section and locations are added to the map (well, the global one at
   least)!).
 * I have tried to include the map both inside a widget, or directly inside the 
   text of the post using the shortcode.
 * No difference … it is only outputting the global map.
 * One other weird thing that happens is that when trying to insert the code in 
   the sidebar widget, using “_map\_content=single_” outputs nothing at all while
   using _“map\_content=contextual” _outputs the … global map …
 * I have changed the theme in the meanwhile, so it’s not the theme either – I experienced
   the very same behavior on more themes.
 * Can’t send you a link as the project is not approved to go online as yet :(, 
   but I hope my explanations here helped you identify the problem?
 * **PS (edit):**_ it really looks like there is a **bug** somewhere; just tried
   the following extra options: map\_content=contextual AND “Click To Load” enabled
   > when clicking on the map place holder on the front-side, it DOES show a single
   map. Without “Click To Load” enabled it shows the global map_
 * Nothing shows though for using “map_content=single”, with or without “Click To
   Load” the output is still fully empty.
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223261)
 * Ok, I took a guess and found a bug that seems likely to be the same you’re experiencing.
   Star this issue to follow progress:
 * [http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=612](http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=612)
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223262)
 * don’t know what is causing it, but I just found this as well and it does not 
   seem to have been solved yet …
 * [http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=577](http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=577)
 * Do you think there will be a fix soon? I need a solution this week …
 * Any workaround would be good 🙂
    Thanks!
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223263)
 * I’m not able to create a case where a global map is displayed when map_content
   is set to single. Without a test case that reproduces the problem I have no hope
   of fixing it.
 * You’ve eliminated the theme as a possible cause – does the problem persist if
   you deactivate all other plugins also? If so, it must be related to the server
   configuration.
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223266)
 * I can’t go through the deactivation of all plugins right now, but the server 
   config should be OK I suppose (php 5 anyways). I actually had the problem with
   the single map version from the very beginning (and this plugin was one of the
   first I have installed on a fresh WP 3.4.2 install).
 * An other strange behavior I have noticed, if I add “static=true” to the single
   map code inside the post (content part), it works! (I mean, it shows the static
   map). The problem persist with the dynamic maps though – still getting the global
   map ;(
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223267)
 * As I just noted on issue 577, [Geo Mashup 1.5rc1](http://code.google.com/p/wordpress-geo-mashup/downloads/detail?name=geo-mashup-1.4.99.2.zip&can=2&q=)
   may resolve this.
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223268)
 * yesssssssssss!
    Thanks for the update!
 *  Thread Starter [candy2012](https://wordpress.org/support/users/candy2012/)
 * (@candy2012)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223269)
 * (hmmm … to early :))
    still seems to be a bug when saving the locations for a
   second custom post type. It does not seem to “remember” the address it when in“
   single mode”, keeps showing only one other location (for an other post) …
 *  [ldekay](https://wordpress.org/support/users/ldekay/)
 * (@ldekay)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223273)
 * I’m having the same problems on a couple of new sites. The test site is at [http://ldekay.ipage.com/wptest/](http://ldekay.ipage.com/wptest/)
   and I’d be happy to give you admin access to look behind the scenes.
 * I have 4 different map pages with shortcodes shown above maps (replaced [] with
   ||). Doesn’t matter whether I designate single, contextual, or specify a category,
   it always shows all post locations on the map.
 * I’m even currently using your 1.5rc1 above and results are still the same.
 * One caveat, I temporarily installed WP Geo after reading their description but
   reverted to geo_mashup. Could there be some lingering elements that are messing
   things up?
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223274)
 * Great to see a test case, thanks! I would like to do some debugging – could you
   grab my contact info from the sidebar at [http://www.cyberhobo.net](http://www.cyberhobo.net)
   to create an admin account?
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223275)
 * I remembered a prior issue where this kind of thing happened with the W3TC plugin:
 * [https://code.google.com/p/wordpress-geo-mashup/issues/detail?id=425](https://code.google.com/p/wordpress-geo-mashup/issues/detail?id=425)
 * That was fixed, but if for some other reason the WordPress transient system isn’t
   working on your system, that would cause behavior like this. I may see if I can
   build a transient test into the settings page to detect this.
 *  Plugin Author [Dylan Kuhn](https://wordpress.org/support/users/cyberhobo/)
 * (@cyberhobo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/#post-3223276)
 * Thanks @Idekay! In your case it is indeed the old W3TC issue. I turned off the
   object cache and that fixed things – probably the only option at this point.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/single-vs-global-map-no-difference/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/single-vs-global-map-no-difference/page/2/?output_format=md)

The topic ‘single vs. global map – no difference ?!?’ is closed to new replies.

 * ![](https://ps.w.org/geo-mashup/assets/icon.svg?rev=1631806)
 * [Geo Mashup](https://wordpress.org/plugins/geo-mashup/)
 * [Support Threads](https://wordpress.org/support/plugin/geo-mashup/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-mashup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-mashup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-mashup/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/single-vs-global-map-no-difference/page/2/#post-3223290)
 * Status: resolved