Home › Forums › Calendar Products › Events Calendar PRO › Google Maps with All Events
- This topic has 33 replies, 7 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 30, 2012 at 10:49 am #17405
Henry
MemberNote that it is all about the loop – only posts that are returned by your loop will display on the map.
April 3, 2012 at 5:47 am #17521Robert
MemberHenry, I am unable to get your code to work. Is there anything else you may have forgot to mention? I have even looked into the documentation but no luck. Your response is greatly appreciated.
April 3, 2012 at 5:57 am #17522Robert
MemberAlso, “event-map” name, what is this and where is it declared in the plugin? Or does it need to be declared anywhere else but list. When I look at the source I am just seeing an empty div tag that i wrapped the code in.
April 4, 2012 at 5:55 pm #17614Rob
MemberRobert: have you modified this code at all? If so, want to share what you’ve got? We can try to take a look from there.
Henry, any thoughts on why Robert may be having issues with the code?
April 4, 2012 at 7:04 pm #17630Henry
Member@Robert
The code is specific to the Geo Mashup plugin:
http://wordpress.org/extend/plugins/geo-mashup/If you haven’t already installed Geo Mashup, you will need to install the plugin for my code to work.
The code should go within the loop. For example, if you want the map to appear on a page called “myevents” then create a new template in your theme’s directory and call it page-myevents.php
Use this code (no styling provided):
http://pastie.org/3730610With reference to the “event-map” name. This isn’t declared in the plugin. it just useful to have if you have more than one map on your site. Feel free to remove it.
April 5, 2012 at 7:20 am #17642Robert
Member@Rob @Henry
Basically my theme doesn’t want to play nicely at all with Geo Mashup. I really want this to be in my “ctabox” div (see code) above the ECP list which is technically out of the loop. I have added the code to where the list is being generated, but still no luck. You will notice that my theme is calling a function to load the loop for posts. Can I even use this plugin or hack the code to make this work. I really need this to specifically work on the events pages and not on a stand alone page. If you can help it will be GREATLY appreciated.April 5, 2012 at 7:21 am #17643Robert
MemberJust a note. I did also try this on a page and it did not work. I am thinking I may need to have the loop function for my theme.
April 5, 2012 at 8:48 am #17646Henry
MemberYou can put a map outside posts and pages by using the template tag GeoMashup::map();
This makes a “Contextual Map”. Technically contextual maps include will include events that are in the current global query results. You have to pass the map some events to display. If you add the code outside the global query then nothing will show up.
I have the code in my list.php which allows me to display a map of events instead of a list of events. It won’t matter which DIV you place the code in, but it does need to be within the global query.
April 5, 2012 at 10:10 am #17657Rob
MemberThanks Henry.
Robert: hopefully that should be of some value, but let us know if not.
April 5, 2012 at 10:41 am #17666Robert
MemberI am having absolutely no luck with this plugin what-so-ever… I have modified my template to include the loop and still nothing. Please look.
http://pastie.org/3733210April 5, 2012 at 2:37 pm #17680Henry
Member@Robert
Have you geo-coded any events? You have to geo-tag events before they appear. The plugin makes it easy to do this. Go to
Settings > Geo Mashup > and then make sure “Events” is checked where it says “Collect location for”.
Then when you create an event, you will have a new metabox appear where you can add an address to the event.
Once you’ve done this some events should show up.
April 6, 2012 at 6:33 am #17684Robert
MemberGot it! Okay my only complaint is that, Rob we need this implemented in the next release 😉 I can see a lot of value with this. Click the link to see my implementation:
http://dev.championroper.com/events/
I am not really a fan of going through my 500+ events and adding in the addresses of all of my events especially when I have already done so within ECP with the venues. I wish there was a more simple way to just look at the ECP data entries for the addresses for all of the venues and automatically add them into this plugin.
@Henry Thank you for your help and guiding me to this plugin. I can see the value in it.April 6, 2012 at 9:44 am #17694Rob
MemberHey Robert. Thanks for confirming as much. I can say with some certainty that this probably won’t make it into 2.0.6, unfortunately – we’ve got a lot of work to do to make it fully functional and since 2.0.6 is just a few weeks out we wouldn’t be able to hit that 🙁
This is definitely on track for the 2.1 lifecycle, though. And the more requests we get for it in the Feature Requests thread (https://theeventscalendar.com/support/forums/topic/events-calendar-pro-feature-requests/), the sooner it’ll likely be integrated. Sorry I couldn’t offer up more in the short-term.
April 7, 2012 at 5:56 am #17704Henry
MemberGlad to hear you resolved the issue! your site looks good!
June 21, 2012 at 4:50 pm #21012Tony
Participant@Henry this works perfectly. Love it.
I see there is an option in Geo Mashup called “Copy Geodata Meta Fields”. I’m wondering if there is a way to grab the address from the event and auto populate the Geo Mashup location with the event address the user places in this.
@Rob, we purchased the community events plugin (really like it) and I’m wondering how I could get the Geo Mashup custom metabox to appear in the front end so our community can add their geolocation. IF, there is a way to auto populate it like what I was thinking about in the above paragraph then I wouldn’t need for it to show on the front-end I wouldn’t think.
-
AuthorPosts
- The topic ‘Google Maps with All Events’ is closed to new replies.
