Locations format works in the same way as events, but the parameters are different.
#_LOCATIONNAMEindicates the location name (weird, huh?)
- Other general parameters are
#_LOCATIONIMAGEplaceholder is also used in the location balloon for the event.
#_LOCATIONPAGEURLreturns the URL of the location
#_LOCATIONIMAGEURLreturns the URL of the image associated with the location
#_LOCATIONIMAGETHUMBshows a thumbnail of the featured image, instead of the whole image. The size can be choosen in the EME settings (panel ‘Other’), by default it is ‘thumbnail’ size
#_LOCATIONIMAGETHUMBURLreturns the url to the thumbnail
- Three tags allow the display of events taking place in the given location. Use
#_NEXTEVENTSto insert a list of the upcoming events,
#_PASTEVENTSfor a list of past events,
#_ALLEVENTSfor a comprehensive list of all events.
#_LOCATIONIDreturns the location ID
#_LONGITUDEreturn the langitude and longitude for the location
#_DIRECTIONSdisplays a small form so you can ask for driving directions to an event/location
#_LOCATIONCATEGORIESdisplays a comma-separated list of categories a location is in
#_LOCATIONCATEGORIES_CSSdisplay a space-separated list of categories (so you can use them to do css stuff based on these names).
#_LOCATIONCATEGORYDESCRIPTIONSreturns the different category descriptions for a location
#_EDITLOCATIONLINKinserts a link to the edit location page, only if a user is logged in
#_EDITLOCATIONURLjust shows the link to the edit location page (if a user is logged in), not clickable like
#_LOCATION_EXTERNAL_REFreturns the external reference for a location (typically the facebook id)
The aforementioned events list can be similarly formatted through the Default location event list format setting field. This field follows the conventions of events formatting.
You can also use the shortcode [eme_events] in the “single location format” or “location list format” setting, with the option
location_id=this_location. E.g. this would show the future 5 events for the specific location when viewing that single location details:
[eme_events scope=future limit=5 location_id=this_location]