With http://api.wordpress.org/events/1.0/?latitude=47.496&longitude=8.226 you can display the next WordPress-Events arround a geoposition. This can be displayed with the free plugin this way:
Create a new page with Gutenberg active. Insert the above URL into the Blocks API-URL. The “basenode” is “events”.
The template is:
{subloop-array:events:-1} <a href={events.meetup_url} target=_blank>{events.title}</a><br>{events.date:datetime,"d.m.Y, H:i",0}<br> {subloop:events.location:-1}{events.location.location}{/subloop:events.location}<hr> {/subloop-array:events}
Screenshot of the Block-Settings:
Example in Action: Additional set “Number of json-top-level-items to display” to 2.
If you want to format the date you need the pro plugin.
In Action via Gutenberg-Block:
WordPress Meetup Konstanz13.01.2025, 19:00
Konstanz, Germany
#100 In 60 Minuten ein eigenes WordPress-Theme mit Full Site Editing erstellen
23.01.2025, 18:00
Bern, Switzerland
WordPress Meetup Konstanz
10.02.2025, 19:00
Konstanz, Germany
WordPress Meetup Konstanz
10.03.2025, 19:00
Konstanz, Germany
#101 WordPress Meetup Bern
27.03.2025, 18:00
Bern, Switzerland
WordPress Meetup Konstanz
14.04.2025, 19:00
Konstanz, Germany
WordPress Meetup Konstanz
12.05.2025, 19:00
Konstanz, Germany
#102 WordPress Meetup Bern
22.05.2025, 18:00
Bern, Switzerland
WordCamp Europe
05.06.2025, 00:00
Basel, Switzerland
#103 WordPress Meetup Bern – Gemeinsames Grillen
24.07.2025, 18:00
Bern, Switzerland