Arlo home

Upcoming events related shortcodes

These shortcodes build the Upcoming events list: a row of filter dropdowns, one repeated block per upcoming event, the price of each event and the page links. A separate shortcode, [arlo_upcoming_widget_list], builds the same kind of list for the Upcoming events widget.

The list is the page shortcode [arlo_upcoming_list] (see global shortcodes), which outputs the Upcoming events template. Filters such as category, location or eventtag are set on that page shortcode or on the Pages tab, not on the list item. Events appear in date order, and only events that have an advertised offer are listed.

The HTML shown for each shortcode is what the plugin outputs, with line breaks and indentation added for readability. Names, dates, prices and URLs are examples.

Contents

Quick start

A minimal Upcoming events template. The month heading appears above the first event of each month. The date uses a date format:

[arlo_upcoming_event_filters filters="category,month,location"]
<ul>
[arlo_upcoming_list_item limit="20"]
    [arlo_group_divider wrap="<li class='divider'><h2>%s</h2></li>"]
    <li>
        [arlo_event_start_date format="%d %b"]
        [arlo_event_template_name]
        [arlo_upcoming_offer]
    </li>
[/arlo_upcoming_list_item]
</ul>
[arlo_upcoming_list_pagination limit="20" wrap="<div class='pagination'>%s</div>"]

Rendered as HTML (the filter form is shortened):

<form class="arlo-filters" …> … </form>
<ul>
  <li class="divider"><h2>December 2026</h2></li>
  <li>
    08 Dec
    Prompting, Chats, and Privacy
    <span class="arlo-amount">EUR 565.00</span> <span class="arlo-price-tax"> excl. tax</span>
  </li>
  …
  <script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
</ul>
<div class="pagination"><span aria-current="page" class="page-numbers current">1</span>
<a class="page-numbers" href="https://example.com/upcoming/page/2/">2</a>
<a class="next page-numbers" href="https://example.com/upcoming/page/2/">Next &raquo;</a></div>

[arlo_upcoming_event_filters]

Outputs a form with a dropdown for each filter you choose, and a reset link. Choosing a value reloads the page filtered by it.

Use in: the Upcoming events template.

Structure

[arlo_upcoming_event_filters
    filters="category,month,location,delivery"
    resettext="Reset"
    buttonclass="button"
    labeltype="default"
    showlabel="true"]

Output (example)

Rendered as HTML, for filters="month,delivery" and showlabel="true" (options shortened):

<form class="arlo-filters" method="get" action="https://example.com/upcoming/">
  <label for="arlo-filter-month">All months</label>
  <select aria-label="Months" id="arlo-filter-month" class="arlo-filter-month" name="arlo-month">
    <option value="">All months</option>
    <option value="20261201:20261231">December</option>
    …
  </select>
  <label for="arlo-filter-delivery">All delivery options</label>
  <select aria-label="Delivery Methods" id="arlo-filter-delivery" class="arlo-filter-delivery" name="arlo-delivery">
    <option value="">All delivery options</option>
    <option value="0">Workshop</option>
    <option value="1">Online</option>
    <option value="99">Online Activity</option>
  </select>
  <div class="arlo-filters-buttons">
    <input type="hidden" id="arlo-page" value="https://example.com/upcoming/">
    <a href="https://example.com/upcoming/" class="button">Reset</a>
  </div>
</form>

Usage

  • Dropdowns always appear in the plugin's own order (category, month, location, delivery, event tag, template tag, presenter, state), whatever the order in filters.
  • A dropdown with no options is left out. The month dropdown starts with the current month.
  • The delivery dropdown also offers Online Activity, but online activities are not listed in the Upcoming events list, so choosing it shows no events.
  • Dropdowns that the page's filter settings limit to certain values show only those values.

Attributes

AttributeType / valuesDefaultDescription
filters Comma-separated list of: categorymonthlocationdeliveryeventtagtemplatetagpresenterstate category,month,location,delivery The dropdowns to show.
resettext Text Reset The text of the reset link, which reloads the page with no filters.
buttonclass CSS class name button The class of the reset link.
labeltype Option: defaultv1 default default uses prompts such as "All categories" for the first option; v1 uses plain names such as "Categories".
showlabel Option: true Not set Adds a <label> before each dropdown, with the same text as its first option.

Also accepts the universal attributes.

[arlo_upcoming_list_item]

Repeats the content between its tags once for each upcoming event, in date order, and adds the month heading that [arlo_group_divider] shows.

Type: Enclosing. Put your markup and other shortcodes between [arlo_upcoming_list_item] and [/arlo_upcoming_list_item].
Use in: the Upcoming events template and the Upcoming events widget template (inside [arlo_upcoming_widget_list]).

Structure

[arlo_upcoming_list_item
    limit="20"
    noevent_before="<div class='not-found'>"
    noevent_after="</div>"]
    <li>
        [arlo_event_start_date format="%d %b"]
        [arlo_event_template_name]
    </li>
[/arlo_upcoming_list_item]

Output (example)

Rendered as HTML, for two events:

<li>
  08 Dec
  Prompting, Chats, and Privacy
</li>
<li>
  09 Dec
  Practical Facilitation
</li>
<script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>

Usage

  • Use it for the event rows only. Put the wrapper (such as <ul>) outside it; the shortcode adds no element of its own, only your markup and a JSON-LD <script> after the last event.
  • Inside it you can use the event shortcodes (event related, such as [arlo_event_start_date] and [arlo_event_notice]), the event template related shortcodes, the venue related shortcodes, [arlo_upcoming_offer] and [arlo_group_divider].
  • [arlo_group_divider] outputs the month and year (for example December 2026) on the first event of each month and nothing on the others, so its wrap is output once per month.
  • When there are no events, the No events text from the settings (or "No events to show") is output in a <p class="arlo-no-results">, between noevent_before and noevent_after.

Attributes

AttributeType / valuesDefaultDescription
limit Integer, 1 or more The WordPress Posts per page setting Events per page. [arlo_upcoming_list_pagination] uses the same value.
show_child_elements Option: true Not set When a category filter applies, also lists events in the categories below the chosen ones.
noevent_before HTML as allowed in a WordPress post None Output before the "no events" message.
noevent_after HTML as allowed in a WordPress post None Output after the "no events" message.

Also accepts the universal attributes, which apply to the whole list.

Examples

With a month heading from [arlo_group_divider]:

<ul>
[arlo_upcoming_list_item limit="2"]
    [arlo_group_divider wrap="<li class='divider'>%s</li>"]
    <li>[arlo_event_start_date format="%d %b"] [arlo_event_template_name]</li>
[/arlo_upcoming_list_item]
</ul>
<ul>
  <li class="divider">December 2026</li>
  <li>08 Dec Prompting, Chats, and Privacy</li>
  <li>09 Dec Practical Facilitation</li>
  <script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
</ul>

When no events match, with noevent_before and noevent_after set:

[arlo_upcoming_list_item noevent_before="<div class='not-found'>" noevent_after="</div>"]
    <li>[arlo_event_template_name]</li>
[/arlo_upcoming_list_item]
<div class="not-found"><p class="arlo-no-results">No events to show</p></div>

[arlo_upcoming_list_pagination]

Outputs the page links for the list above it. Nothing is output when everything fits on one page.

Use in: the Upcoming events template, after [arlo_upcoming_list_item].

Structure

[arlo_upcoming_list_pagination limit="20" wrap="<div class='pagination'>%s</div>"]

Output (example)

Rendered as HTML, on page 1 of 2:

<div class="pagination"><span aria-current="page" class="page-numbers current">1</span>
<a class="page-numbers" href="https://example.com/upcoming/page/2/">2</a>
<a class="next page-numbers" href="https://example.com/upcoming/page/2/">Next &raquo;</a></div>

Usage

Place it after the list item

It then uses the list item's limit and show_child_elements. Placed before the list item, it needs its own limit to match, or the page count will be wrong.

  • The links use WordPress paging, /page/2/ with pretty permalinks.
  • The same filters that apply to the list are applied when counting pages.
  • wrap is only output when there are page links, so use it for the wrapper element.

Attributes

AttributeType / valuesDefaultDescription
limit Integer, 1 or more The limit of the list item, otherwise the WordPress Posts per page setting Events per page, used to work out the number of pages.

Also accepts the universal attributes.

[arlo_upcoming_offer]

Outputs the price of the event's first advertised offer, with the tax label chosen in the price shown setting. A free offer outputs the free text instead (Free by default).

Use in: [arlo_upcoming_list_item], in the Upcoming events template or the Upcoming events widget template.

Structure

[arlo_upcoming_offer]

Output (example)

Rendered as HTML, for a priced event, with the price shown excluding tax:

<span class="arlo-amount">EUR 565.00</span> <span class="arlo-price-tax"> excl. tax</span>

Usage

  • It always outputs something, so use plain markup around it.
  • To list every offer of the event rather than the first, use [arlo_event_offers] from the event related shortcodes.
  • With regions mapped, the list shows the events of the visitor's region, so each price is in that region's currency, and a page shows one currency. See Pricing and currencies.

Attributes

None. Accepts the universal attributes.

Examples

For a free event, the free text from the settings is output:

[arlo_upcoming_offer]
<span class="arlo-amount">Free</span>

[arlo_upcoming_region_selector]

Outputs a dropdown of the regions you have set up, so visitors can switch region. Nothing is output when no regions are set up.

Use in: the Upcoming events template.

Structure

[arlo_upcoming_region_selector]

Output (example)

Rendered as HTML, for two regions:

<select aria-label="Regions" id="arlo-filter-region" class="arlo-filter-region" name="arlo-region">
  <option value="AU">Australia</option>
  <option value="US">United States</option>
</select>

Usage

  • The output can be empty, so use wrap rather than your own tags around it.

Attributes

None. Accepts the universal attributes.

[arlo_upcoming_widget_list]

Sets up the list for the Upcoming events widget, optionally limited by tag, and outputs the template between its tags. That template repeats once per event using [arlo_upcoming_list_item].

Type: Enclosing. Put your markup and other shortcodes between [arlo_upcoming_widget_list] and [/arlo_upcoming_widget_list].
Use in: the Upcoming events widget template. The widget adds this shortcode around its template for you, so you only write it yourself to show the list elsewhere.

Structure

[arlo_upcoming_widget_list limit="5" eventtag="featured" templatetag="leadership"]
    <ul class="arlo-widget-upcoming">
    [arlo_upcoming_list_item]
        <li>
            [arlo_event_start_date format="%d %b"]
            [arlo_event_template_permalink wrap="<a href='%s'>"][arlo_event_template_name]</a>
        </li>
    [/arlo_upcoming_list_item]
    </ul>
[/arlo_upcoming_widget_list]

Output (example)

Rendered as HTML, for two events:

<ul class="arlo-widget-upcoming">
  <li>
    08 Dec
    <a href="https://example.com/events/prompting-chats-and-privacy/">Prompting, Chats, and Privacy</a>
  </li>
  <li>
    09 Dec
    <a href="https://example.com/events/practical-facilitation/">Practical Facilitation</a>
  </li>
  <script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
</ul>

Usage

Always set limit

Without it, the list shows no events. The widget's Number of events to show setting supplies it for you.

  • The content between the tags must contain [arlo_upcoming_list_item] and its closing tag; the widget list itself adds no markup.
  • With no content between its tags, the plugin uses the Upcoming events widget template from the Templates settings.
  • eventtag and templatetag each take one tag name. The current region applies automatically.
  • This shortcode is not the page shortcode: use [arlo_upcoming_list] for a full Upcoming events page.

Attributes

AttributeType / valuesDefaultDescription
limit Integer, 1 or more None The number of events to list.
eventtag One event tag name Not set Lists only events with this tag.
templatetag One event template tag name Not set Lists only events whose event template has this tag.

Also accepts the universal attributes.