SHORTCODES
Home > Documentation
Shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes are in this format:
Keine VeranstaltungenEvent information can also be displayed through shortcode. Just insert one of the following shortcodes into any of your posts/pages. You can even include shortcode within event and location descriptions!
Event Shortcodes
Displays a list of events. If you enter html and placeholders within the shortcode, each event will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes.
The above will display events occurring tomorrow in the United States in a paragraph format.
Keine VeranstaltungenThe above will display events grouped by month occurring in the United States and may look like this:
This will show the event with post ID 123, and replace #_EVENTNAME with the name of this event.
<br /> Displays a text link which links to the events page. If you add text in between opening and closing shortcode tags, it will become the link text, like so:</p> <p>[events_link]alternate events link textWould become alternate events link text
https://moosbuehne.de/termine/
Displays the events page url (e.g. “http://yoursite.com/events/”).
Would become alternate RSS link text
https://moosbuehne.de/termine/feed/
Displays the events RSS url (e.g. “http://yoursite.com/events/rss/”)
Location Shortcodes
Displays a list of locations. If you enter html and location placeholders within the shortcode, each location will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes.
Example:
Displays a list of locations. If you enter html and location placeholders within the shortcode, each location will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes.
Example:
The above will display location links with events occurring tomorrow in the United States in an unordered list format.
This shortcode requires either the post_id OR location attribute and also accepts other location and general search attributes.
Example:
[location post_id="123"]My selected location is called Treffpunkt: Am Schloss Birkeneck – Birkeneck 1
This will show the location with post ID 123, and replace #_LOCATIONNAME with the name of this location.
width : The width in pixels of the map. Default: 450.
height : The height in pixels of the map. Default: 300.
map_style : A base64 encoded JSON map style object. See our maps documentation for styling instructions.
Example:
Will show events located in the US, which may look like this:
The balloon appears once a marker is clicked on, and the content of the balloon can be configured with placeholders in Events > Settings > Formats/Templates > Maps and Geotagging section of your admin area.
Category Shortcodes
Displays a list of event categories. If you enter html and category placeholders within the shortcode, each category will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the category and general search attributes. as well as $args available to the WordPress get_terms function.
Example:
Displays a list of event categories. If you enter html and category placeholders within the shortcode, each category will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the category and general search attributes. as well as $args available to the WordPress get_terms function.
Example:
The above will display category links including those without events in an unordered list format.
Calendar Shortcodes
full : Shows a full sized calendar if set to 1. Default: 0
long_events : Displays events that span more than one day on each calendar cell where it’s active if set to 1. Default: 0
Example :
Will show a full-sized calendar displaying events within the US which have a category ID of 1,2,3, or 4 that occur on February 2012 (default starting month will be 02/2012), which may look like this: