Accordion Upcoming Events with Geo Location
In order to use the GeoLocation in Accordion Upcoming Events, you will need to install the GeoIP Detection plugin.
feed: 0 will not show the feeds from External Event Sources and 1 will include the feeds.
auw_title_type: 1 will not render the Event Title as a link.
taxonomy: This is the taxonomy you want to use to filter. The defaults are Calendar, Venue, and Organizer, but you can also use any custom taxonomy you have created.
terms: This is the parent term you want to use.
terms_children: 1 will show the child terms of the parent.
tax_filter_multiple: 1 will allow to select multiple terms in drop down. 0 will only allow selecting one term in drop down.
geo_radius: Choose either Miles or Kilometer in Options > General Settings and then enter the radius you want to set for showing events.
geo_center: This is the Latitude and Longitude that can be used to set a fixed location. If you do not set this the Geo IP plugin will detect the visitor’s location.
Your location based on GeoIP
IP of the user: 126.96.36.199
Country: United States
State or region: Virginia
Data from: GeoLite2 City database (updated weekly)
In the first example below we have used the geo_center attribute to set a fixed Latitude and Longitude as if you are in Hoboken, NJ (5 minutes from Manhattan, NY).
In the example below, we have not used geo_center attribute to set a fixed Latitude and Longitude.
The GeoIP Detection plugin will detect your location and the Accordion Upcoming Events will show events within 500 miles (800 kilometers) from your location. If you are outside the radius set you will see the no events message.