Hello Stephen,
I am using [event_map event_start_after=”now”] and only venues with events starting within the next 8 days are displayed on the event map.
Is this how it should work? Am I doing something wrong?
Thanks, David
David Nathan
Or could we also use [event_map showpastevents=false]?
David
David Nathan
Hi David,
The event map limits the number of returned events to 10. Keep in mind that of those 10 events, only those with venues will be visible. You can use the numberposts
attribute to adjust this.
Stephen Harris
Hello Stephen,
Thanks for your prompt response with a solution.
I have set numberposts=100 and it works fine.
Cheers,
David
David Nathan
Hello Stephen,
Perhaps the effect of the numberposts attribute could be added to the event_map documentation?
Thanks,
David
David Nathan
It’s implicitly referenced here:
You can think of this as the event list shortcode, but in map form. It takes the same argument as as the event list shortcode and venue map shortcode.
The actual attributes aren’t referenced, because there are so many of them (including all the default WP_Query
attributes, of which numberposts
is one).
That said, the docs should be mention that the default value of numberposts
is set to 10. (duly updated).
Stephen Harris