Home › Forums › Calendar Products › Events Calendar PRO › Only events on page are shown on Map
- This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago by Support Droid.
-
AuthorPosts
-
December 18, 2014 at 2:32 pm #922678rdallParticipant
Hi Tribe(r)’s
I have a bit of a conundrum for you.
I purchased Pro for this newly launched site. http://events.artwolfe.com
And it is working out great and looks a heck of alot better then the previous site. But we have come across a problem.
We are using MAP view with comes with The Events Calendar Pro and we want to show all the workshops and locations Art is traveling to. The problem is if we limit the amount of events on the page the only those events actually show up on the map.
See example:
We have a event happening in Portland but their is no portland dot on the map because the event isn’t on the same pages query.But if we increase the amount of the events per page in the Events Calendar settings we slow down the entire site.
So how do we query all the events for the map without loading all of the event on the page.
December 18, 2014 at 2:34 pm #922679rdallParticipantSorry my screenshot embed didn’t work wrong url. Here the direct link. http://cl.ly/image/0j3M1a1a0B1l
December 19, 2014 at 4:26 am #922838JoshParticipantHey Robert,
Thanks for reaching out to us!
Although it sounds like the map is working as designed, I understand your need to modify it for this specific situation. You can limit the increased number of events to pull to just the map view by using the “pre_get_posts” hook in WordPress. You could then wrap the logic of the “posts_per_page” argument for the associated function with a check for whether or not the current view is the map view (tribe_is_map).
Let me know if this helps.
Thanks!
December 22, 2014 at 10:59 am #923858rdallParticipantThis reply is private.
December 23, 2014 at 11:43 am #924350JoshParticipantHey Robert,
Sounds good Robert. Look forward to hearing back from you after the holidays.
Thanks!
July 7, 2015 at 6:31 am #983659Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Only events on page are shown on Map’ is closed to new replies.