Arlo home

Event template related shortcodes

An event template is a course as it is set up in Arlo, such as "Leadership Basics". These shortcodes list your event templates (the Catalogue, Schedule and Event search templates) and show the details of one template, on the Event template and in the lists.

The list is the page shortcode [arlo_event_template_list] or [arlo_schedule] (see global shortcodes), which outputs the template. Category, location, delivery and tag filters are set on that page shortcode or on the Pages tab. The shortcodes for one template's details, such as the name or price, show the current event template: the one in the current repeat of [arlo_event_template_list_item], or the template of the Event page. Outside those places they output nothing.

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

Contents

Quick start

A minimal Catalogue template: filters, one block per event template and the page links.

[arlo_event_template_filters filters="category,location,delivery" wrap="<div class='filters'>%s</div>"]
[arlo_event_template_list_item limit="10"]
    <div class="course">
        [arlo_event_template_list_image alt_use_event_name="true"]
        [arlo_event_template_permalink wrap='<h3><a href="%s">'][arlo_event_template_name]</a></h3>
        [arlo_event_template_summary digest="160" wrap="<p>%s</p>"]
        [arlo_event_template_advertised_price wrap="<p class='price'>%s</p>"]
    </div>
[/arlo_event_template_list_item]
[arlo_event_template_list_pagination limit="10" wrap="<div class='pagination'>%s</div>"]

Rendered as HTML (the filter form is shortened):

<div class="filters"><form id="arlo-event-filter" class="arlo-filters" …> … </form></div>
<div class="course">
  <img src="https://example.com/images/108-list.jpg" alt="Leadership in Practice">
  <h3><a href="https://example.com/events/108-leadership-in-practice/">Leadership in Practice</a></h3>
  <p>A practical course for new team leaders.</p>
  <p class="price">From EUR 350.00 incl. tax</p>
</div>
…
<script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
<div class="pagination"><span aria-current="page" class="page-numbers current">1</span> …</div>

A minimal Event template: the template details followed by its content fields. [arlo_no_event_in_region] shows a message when the template is not offered in the region the visitor chose:

[arlo_template_region_selector]
[arlo_no_event_in_region]<p>This course is not available in the selected region.</p>[/arlo_no_event_in_region]
<h1>[arlo_event_template_name]</h1>
[arlo_event_template_summary wrap="<p>%s</p>"]
[arlo_event_template_advertised_duration wrap="<p>Duration: %s</p>"]
[arlo_event_template_advertised_presenters format="link" wrap="<p>Presented by %s</p>"]
[arlo_content_field_item]
    <h2>[arlo_content_field_name]</h2>
    [arlo_content_field_text]
[/arlo_content_field_item]

Rendered as HTML, for a template that is offered in the region:

<select aria-label="Regions" id="arlo-filter-region" class="arlo-filter-region" name="arlo-region"> … </select>
<h1>Prompting, Chats, and Privacy</h1>
<p>Plan launches without guesswork.</p>
<p>Duration: 3 days</p>
<p>Presented by <a href='https://example.com/presenters/301-elena-maren/'>Elena Maren</a></p>
<h2>Overview</h2>
<p>Fictional learning content with practical guidance and reflection.</p>
<h2>Who should attend</h2>
<p>…</p>

[arlo_event_template_list_item]

Repeats the content between its tags once for each event template in the list. It can group the templates by category or by first letter and can limit how many are shown per page.

Type: Enclosing. Put your markup and other shortcodes between [arlo_event_template_list_item] and [/arlo_event_template_list_item].
Use in: the Catalogue, Schedule and Event search templates.

Structure

[arlo_event_template_list_item
    group="category"
    limit="10"
    group_header="<h2>%s</h2>"
    category_before="<div class='category'>"
    events_before="<div class='events'>"
    events_after="</div>"
    category_after="</div>"]
    <h3>[arlo_event_template_name]</h3>
[/arlo_event_template_list_item]

Output (example)

Rendered as HTML, for two categories with two and one event templates:

<div class="category">
  <h2>Leadership</h2>
  <div class="events">
    <h3>Leadership Basics</h3>
    <h3>Coaching Skills</h3>
  </div>
</div>
<div class="category">
  <h2>Project Management</h2>
  <div class="events">
    <h3>Agile Fundamentals</h3>
    <script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
  </div>
</div>

Usage

Set the grouping markup together

group_header, category_before, events_before, events_after and category_after belong together and need group="category". events_after and category_after are also output once after the last template, so do not use them without grouping.

Repeat climit and group on the pagination

Set them again on [arlo_event_template_list_pagination], or the page count will not match the list.

  • The shortcode adds no wrapper element of its own, only your markup and a JSON-LD <script> after the last template, inside the last category in the output above.
  • With group="category" there is one repeat per category and template, so a template in two categories is listed twice.
  • Filters set on the page shortcode, the Pages tab or the address override attributes with the same name here.
  • When there are no templates nothing is output. Put [arlo_no_event_text] after the list to show the "no events" message.

Attributes

AttributeType / valuesDefaultDescription
Paging
limit Integer, 1 or more The WordPress Posts per page setting Templates per page. With climit, templates per category.
climit Integer, 1 or more Not set Pages the list by category: this many categories per page. Each category outputs one more template than limit (see the Examples).
Grouping
group Option: categoryalpha Not set Groups the templates by category or by first letter and enables [arlo_group_divider].
group_header Text containing %s; HTML as allowed in a WordPress post None Output at the start of each category. %s is the category name.
category_before HTML as allowed in a WordPress post None Output before group_header.
events_before HTML as allowed in a WordPress post None Output after group_header, before the category's templates.
events_after Text containing %s; HTML as allowed in a WordPress post None Output after each category's templates. %s is the category slug.
category_after HTML as allowed in a WordPress post None Output after events_after for each category.
Categories
category Comma-separated Arlo category IDs Not set Lists only these categories. Without it, only templates in top-level categories are listed unless show_child_elements is set.
categoryhidden Comma-separated Arlo category IDs Not set Leaves out these categories and the categories below them.
show_child_elements Option: true Not set Includes templates from the categories below the chosen ones.
show_only_at_bottom Option: true Not set Shows the list only on a category with no subcategories, so a page of subcategory links from [arlo_categories] leads down to the list.
Filters
location One location name Not set Lists only templates with events in this location.
locationhidden One location name Not set Leaves out templates with events in this location.
venue Comma-separated Arlo venue IDs Not set Lists only templates with events at these venues.
delivery Option:
  • 0 Workshop
  • 1 Online
  • 99 Online Activity
Not set Lists only this delivery type.
deliveryhidden Option: 0199 Not set Leaves out this delivery type.
search Text Not set Matches the template code, name and summary. Normally supplied by the search form.
region Region code The current region Lists only templates and events in this region.

Also accepts the universal attributes, which apply to the whole list. Tag filters are set on the page shortcode or the Pages tab. See attribute values and placeholders for %s.

Examples

Grouping with dividers instead of group_header. [arlo_group_divider] outputs the category name on the first template of each category and nothing on the others, so its wrap is output once per category:

<ul>
[arlo_event_template_list_item group="category" limit="10"]
    [arlo_group_divider wrap="<li class='divider'><h3>%s</h3></li>"]
    <li>[arlo_event_template_name]</li>
[/arlo_event_template_list_item]
</ul>
<ul>
  <li class="divider"><h3>Leadership</h3></li>
  <li>Leadership Basics</li>
  <li>Coaching Skills</li>
  <li class="divider"><h3>Project Management</h3></li>
  <li>Agile Fundamentals</li>
  <script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
</ul>

Alphabetical grouping lists the templates by name and marks the first one of each letter:

[arlo_event_template_list_item group="alpha" limit="50"]
    [arlo_group_divider wrap="<h2>%s</h2>"]
    <p>[arlo_event_template_name]</p>
[/arlo_event_template_list_item]
<h2>A</h2>
<p>Agile Fundamentals</p>
<h2>C</h2>
<p>Coaching Skills</p>
<h2>L</h2>
<p>Leadership Basics</p>
<script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>

Paging by category with climit: three categories per page, three templates each. Every category outputs four templates, one more than limit, so your page can tell whether to show a "Show more" link. Hide the extra last template in each category with your own script or style. The pagination repeats climit and limit:

[arlo_event_template_list_item group="category" climit="3" limit="3" group_header="<h2>%s</h2>"]
    <h3>[arlo_event_template_name]</h3>
[/arlo_event_template_list_item]
[arlo_event_template_list_pagination climit="3" limit="3"]

[arlo_event_template_list_pagination]

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

Use in: the Catalogue, Schedule and Event search templates, after [arlo_event_template_list_item].

Structure

[arlo_event_template_list_pagination limit="10" 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/events/page/2/">2</a>
<a class="next page-numbers" href="https://example.com/events/page/2/">Next &raquo;</a></div>

Usage

Repeat climit and group from the list item

With climit on the list item, set it here too, or the pagination counts templates and shows too many pages. With group="category" and no climit, set group="category" here too.

  • Place it after the list item. It then uses the list item's limit.
  • The links use WordPress paging, /page/2/ with pretty permalinks.
  • On the Schedule template, use [arlo_schedule_pagination] unless you use climit.

Attributes

The paging, grouping and filter attributes of [arlo_event_template_list_item] that decide which templates are counted: limit, climit, group, category, categoryhidden, show_child_elements and the filters. Also accepts the universal attributes; wrap is only output when there are page links.

[arlo_schedule_pagination]

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

Use in: the Schedule template, after [arlo_event_template_list_item].

Structure

[arlo_schedule_pagination limit="10" 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/schedule/page/2/">2</a>
<a class="next page-numbers" href="https://example.com/schedule/page/2/">Next &raquo;</a></div>

Usage

  • Place it after the list item. It then uses the list item's limit.
  • It does not read climit. When the Schedule list is paged by category, use [arlo_event_template_list_pagination] instead.
  • The links use WordPress paging, /page/2/ with pretty permalinks.

Attributes

The attributes of [arlo_event_template_list_item] that decide which templates are counted: limit, category, categoryhidden, show_child_elements and the filters. Also accepts the universal attributes; wrap is only output when there are page links.

[arlo_event_template_code]

Outputs the code of the event template, as set in Arlo.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_code]

Output (example)

Rendered as text:

CAT-101

Usage

  • Outputs plain text with no markup. Put your own element around it.

Attributes

None. Accepts the universal attributes.

[arlo_event_template_name]

Outputs the name of the event template.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_name]

Output (example)

Rendered as text:

Prompting, Chats, and Privacy

Usage

  • Outputs plain text with no markup. Put your own heading or link around it.

Attributes

None. Accepts the universal attributes.

Outputs the address of the event template's page on your site.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

[arlo_event_template_permalink wrap="<a href='%s'>"][arlo_event_template_name]</a>

Rendered as HTML:

<a href="https://example.com/events/101-prompting-chats-and-privacy/region-EU/">Prompting, Chats, and Privacy</a>
  • Outputs only the address, so use wrap to put it in a link, as in the Structure.
  • The address includes the region the template belongs to, for example /region-EU/, when your site has regions.

None. Accepts the universal attributes; wrap is used in the example above.

Outputs the address of the event template's page on Arlo (the Arlo-hosted page for the course).

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

[arlo_event_template_link wrap="<a href='%s'>View on Arlo</a>"]

Rendered as HTML:

<a href="https://example.com/templates/101">View on Arlo</a>

None. Accepts the universal attributes; wrap is used in the example above.

[arlo_event_template_summary]

Outputs the summary text of the event template, optionally shortened.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_summary digest="160" wrap="<p>%s</p>"]

Output (example)

Rendered as HTML, for a summary longer than 160 characters:

<p>A practical course for new team leaders, covering goals, planning and the first...</p>

Usage

  • The summary is output as plain text; any markup in it is shown as text, not applied.
  • Use wrap: a template without a summary outputs nothing, and the wrapper is then left out too.

Attributes

AttributeType / valuesDefaultDescription
digest Integer Not set Since 5.1.0. Shortens a longer summary to this many characters and adds .... A shorter summary is output in full.

Also accepts the universal attributes.

[arlo_event_template_advertised_duration]

Outputs the advertised duration of the event template, as written in Arlo, such as "3 days".

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_advertised_duration wrap="<span class='duration'>%s</span>"]

Output (example)

Rendered as HTML:

<span class="duration">3 days</span>

Usage

  • Use wrap: a template with no advertised duration outputs nothing, and the wrapper is then left out too.

Attributes

None. Accepts the universal attributes; wrap is used in the example above.

[arlo_event_template_advertised_price]

Outputs the advertised price of the event template: the lowest price among the offers of its events and online activities, for the current region.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_advertised_price showfrom="true" showtaxsuffix="true" wrap="<span class='price'>%s</span>"]

Output (example)

Rendered as HTML, when the template's events have more than one price:

<span class="price">From EUR 350.00 incl. tax</span>

Usage

  • The Price shown setting decides whether the price includes tax, and the tax suffix follows it (incl. tax or excl. tax).
  • With regions mapped, the price comes from the offers of the visitor's region, so a page shows one currency. Use regions to show regional pricing and currencies.
  • When the lowest price is zero, the Free text setting is output instead of a price.
  • Use wrap: a template with no offers outputs nothing, and the wrapper is then left out too.

Attributes

AttributeType / valuesDefaultDescription
showfrom Boolean true Puts "From" before the price when the template has more than one price.
showtaxsuffix Boolean true Adds the tax suffix, such as "incl. tax", after the price.

Also accepts the universal attributes.

[arlo_event_template_advertised_presenters]

Outputs the names of the presenters of the event template's events, as plain text or as links to their presenter pages.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_advertised_presenters format="link" wrap="<p>Presented by %s</p>"]

Output (example)

Rendered as HTML, for two presenters:

<p>Presented by <a href="https://example.com/presenters/301-elena-maren/">Elena Maren</a>, <a href="https://example.com/presenters/303-priya-nori/">Priya Nori</a></p>

Usage

  • With the default format="text" the output is each presenter's name once, separated by commas, such as Elena Maren, Priya Nori.
  • Use wrap: a template with no presenters outputs nothing, and the wrapper is then left out too.

Attributes

AttributeType / valuesDefaultDescription
format Option: textlink text Since 5.1.0. link makes each name a link to the presenter's page.

Also accepts the universal attributes.

[arlo_event_template_credits]

Outputs a list of the credits of the event template, such as CPD points.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_credits text="{%label%}: {%points%}"]

Output (example)

Rendered as HTML, for two credits:

<ul class="arlo-event-template-credits">
  <li>CPD: 12</li>
  <li>ECTS: 3</li>
</ul>

Usage

  • There is one list item per credit; text is the markup of one item.
  • A template with no credits outputs nothing, so a heading above it needs label or wrap to avoid being left on its own.

Attributes

AttributeType / valuesDefaultDescription
text Text containing {%label%} and {%points%}; HTML as allowed in a WordPress post {%label%}: {%points%} The content of each list item. {%label%} is the credit type and {%points%} its value.

Also accepts the universal attributes.

[arlo_event_template_tags]

Outputs the tags of the event template, as text, as a list, or as CSS class names.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items), and the Event template.

Structure

[arlo_event_template_tags layout="list" wrapperclass="tags"]

Output (example)

Rendered as HTML, for two tags:

<ul class="arlo-template_tags-list tags">
  <li>Public</li>
  <li>Data</li>
</ul>

Usage

  • A template with no tags outputs nothing, including with layout="list".
  • layout="class" outputs only the class names, for example tag-public tag-data with prefix="tag-" (the default prefix is arlo-). Use it with wrap to put them on an element, as in the Examples, because a shortcode placed inside an HTML attribute is not run.

Attributes

AttributeType / valuesDefaultDescription
layout Option:
  • list A <ul> with one <li> per tag
  • class Class names separated by spaces
Not set Not set outputs the tags separated by commas in a <div class="arlo-template_tags-list">.
prefix Text arlo- With layout="class", put before each tag to form its class name, such as arlo-public.
wrapperclass CSS class names None Since 5.1.0. With layout="list", extra classes for the <ul>.

Also accepts the universal attributes.

Examples

Tags as the class names of an element, so it can be styled by tag. wrap holds the whole element, so a template without tags outputs no element:

[arlo_event_template_tags layout="class" prefix="tag-" wrap="<p class='%s'>Tagged</p>"]
<p class="tag-public tag-data">Tagged</p>

[arlo_event_template_list_image]

Outputs the list image of the event template as an <img> element.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items).

Structure

[arlo_event_template_list_image alt_use_event_name="true"]

Output (example)

Rendered as HTML:

<img src="https://example.com/images/108-list.jpg" alt="Leadership in Practice">

Usage

  • A template with no list image outputs nothing. Use wrap if the image sits in its own element.
  • The image has no width, height or class; size it in your CSS. For your own markup, use [arlo_event_template_list_image_src].

Attributes

AttributeType / valuesDefaultDescription
alt_use_event_name Option: true Not set Since 5.1.0. Uses the template name as the alt text instead of the image file name.

Also accepts the universal attributes.

[arlo_event_template_list_image_src]

Outputs only the address of the list image, for use in your own markup, such as a background image.

Use in: the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items).

Structure

[arlo_event_template_list_image_src urldecode="false" wrap="<div class='cover' style='background-image:url(%s)'></div>"]

Output (example)

Rendered as HTML:

<div class="cover" style="background-image:url(https://example.com/images/108-list.jpg)"></div>

Usage

  • Since 5.1.0. A template with no list image outputs nothing, so use wrap to leave out the element too.

Attributes

AttributeType / valuesDefaultDescription
urldecode Boolean false When true, decodes percent-encoded characters in the address, such as accented letters in the file name. Spaces are always output as %20.

Also accepts the universal attributes; wrap is used in the example above.

[arlo_event_template_hero_image]

Outputs the hero (banner) image of the event template as an <img> element.

Use in: the Event template.

Structure

[arlo_event_template_hero_image alt_use_event_name="true" wrap="<div class='hero'>%s</div>"]

Output (example)

Rendered as HTML:

<div class="hero"><img src="https://example.com/images/101-hero.jpg" alt="Prompting, Chats, and Privacy"></div>

Usage

  • A template with no hero image outputs nothing. Use wrap so the element around the image is left out too.

Attributes

AttributeType / valuesDefaultDescription
alt_use_event_name Option: true Not set Since 5.1.0. Uses the template name as the alt text instead of the image file name.

Also accepts the universal attributes; wrap is used in the example above.

[arlo_event_template_rich_snippet]

Outputs schema.org Course data for the event template as JSON-LD, which search engines use to understand the page.

Use in: the Catalogue, Schedule and Event search templates (inside their list items), and the Event template.

Structure

[arlo_event_template_rich_snippet link="permalink"]

Output (example)

Rendered as HTML (line breaks added to the JSON):

<script type="application/ld+json">{
  "@context": "http://schema.org",
  "@type": "Course",
  "name": "Prompting, Chats, and Privacy",
  "url": "https://example.com/events/101-prompting-chats-and-privacy/region-EU/",
  "description": "Plan launches without guesswork."
}</script>

Usage

  • In a list it outputs one <script> per template. Put it inside [arlo_event_template_list_item] or on the Event template, not around the whole page.
  • The output is a script, not visible content, so it needs no wrap.

Attributes

AttributeType / valuesDefaultDescription
link Option:
  • permalink The template's page on your site
  • viewuri The template's page on Arlo
permalink The address used as the url of the course.

Also accepts the universal attributes.

[arlo_content_field_item]

Repeats the content between its tags once for each content field of the event template, such as "Overview" or "Who should attend", in the order set in Arlo.

Type: Enclosing. Put your markup and other shortcodes between [arlo_content_field_item] and [/arlo_content_field_item].
Use in: the Event template, and the Catalogue, Schedule, Event search and Upcoming events templates (inside their list items).

Structure

[arlo_content_field_item fields="Overview,Who should attend"]
    <h2>[arlo_content_field_name]</h2>
    [arlo_content_field_text]
[/arlo_content_field_item]

Output (example)

Rendered as HTML, for the two fields named:

<h2>Overview</h2>
<p>Fictional learning content with practical guidance and reflection.</p>
<h2>Who should attend</h2>
<p>Team leaders and managers.</p>

Usage

  • Use [arlo_content_field_name] and [arlo_content_field_text] between the tags. They output nothing outside it.
  • Without fields every content field is output. Use fields to output the fields you name, in Arlo's order rather than the order named; to place one field somewhere else on the page, use a second [arlo_content_field_item] with a single name.
  • Nothing is output when the template has no content fields.

Attributes

AttributeType / valuesDefaultDescription
fields Comma-separated content field names, or all all The content fields to output, written exactly as they are named in Arlo, with no spaces after the commas.

Also accepts the universal attributes.

Examples

All content fields, each in its own section. wrap leaves out the wrapper of a field with no text:

[arlo_content_field_item]
    <section>
        [arlo_content_field_name wrap="<h3>%s</h3>"]
        [arlo_content_field_text wrap="<div class='text'>%s</div>"]
    </section>
[/arlo_content_field_item]
<section>
  <h3>Overview</h3>
  <div class="text"><p>Fictional learning content with practical guidance and reflection.</p></div>
</section>
<section>
  <h3>Who should attend</h3>
  …
</section>
…

[arlo_content_field_name]

Outputs the name of the current content field.

Use in: [arlo_content_field_item].

Structure

[arlo_content_field_name wrap="<h2>%s</h2>"]

Output (example)

Rendered as HTML:

<h2>Overview</h2>

Usage

  • Outputs plain text. Every content field has a name, so plain markup around the shortcode is enough.

Attributes

None. Accepts the universal attributes; wrap is used in the example above.

[arlo_content_field_text]

Outputs the text of the current content field, with its formatting.

Use in: [arlo_content_field_item].

Structure

[arlo_content_field_text wrap="<div class='text'>%s</div>"]

Output (example)

Rendered as HTML:

<div class="text"><p>Fictional learning content with practical guidance and reflection.</p></div>

Usage

  • The text is output as HTML, in paragraphs, with the formatting, lists and images entered in Arlo, filtered like WordPress post content.
  • Use wrap so a content field with no text leaves no empty element behind.

Attributes

None. Accepts the universal attributes; wrap is used in the example above.

[arlo_event_template_register_interest]

Outputs a "register your interest" message with a link when the event template has no events or online activities to book.

Use in: the Event template, after the lists of events and online activities.

Structure

[arlo_event_template_register_interest]

Output (example)

Rendered as HTML, for a template with no events that has a register interest link in Arlo:

<p class="arlo-no-results">Interested in attending? Have a suggestion about running this event near you?<br />
<a href="https://example.com/register-interest/101">Register your interest now</a></p>

Usage

  • Nothing is output while the template has events or online activities, so it can stay in the template at all times.
  • The message is the No event on template text setting. A template with no register interest link shows the "no events" message instead.

Attributes

None. Accepts the universal attributes.

[arlo_event_template_register_private_interest]

Outputs a link to enquire about running the event in-house, when the event template has no events to book.

Use in: the Event template, after the list of events.

Structure

[arlo_event_template_register_private_interest text="Want to run this event in-house? %s Enquire about running this event in-house %s"]

Output (example)

Rendered as HTML, for a template with no events that has an in-house enquiry link in Arlo:

<p class="arlo-register-private-interest">Want to run this event in-house? <a href="https://example.com/private/101" class="arlo-register-private-interest-link"> Enquire about running this event in-house </a></p>

Usage

  • Nothing is output while the template has events, or when Arlo has no in-house enquiry link for the template.
  • To offer the same link when the template does have events, use [arlo_suggest_private_datelocation].

Attributes

AttributeType / valuesDefaultDescription
text Text containing %s Want to run this event in-house? %s Enquire about running this event in-house %s The message. The words between the two %s become the link; the words before and after stay plain text.

Also accepts the universal attributes.

[arlo_no_event_in_region]

Outputs a message when the event template is not offered in the region the visitor has selected. Nothing is output when it is offered.

Type: Enclosing. Put your markup and other shortcodes between [arlo_no_event_in_region] and [/arlo_no_event_in_region]. With nothing between the tags, the default message is output.
Use in: the Event template.

Structure

[arlo_no_event_in_region]
    <p>This course is not available in your region.</p>
[/arlo_no_event_in_region]

Output (example)

Rendered as HTML, when the template is not offered in the selected region:

<p>This course is not available in your region.</p>

Usage

  • Since 5.1.0. Only useful when your site has regions. Put [arlo_template_region_selector] next to it so the visitor can choose another region.
  • The other template details are empty in that case, so the page needs no other change.

Attributes

None. Accepts the universal attributes.

Examples

With no content between the tags, the plugin's own message is output:

[arlo_no_event_in_region][/arlo_no_event_in_region]
This course is not available in the selected region.

[arlo_event_template_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 Catalogue template.

Structure

[arlo_event_template_filters
    filters="category,location,delivery,templatetag"
    resettext="Reset"
    buttonclass="button"
    hidereset="true"]

Output (example)

Rendered as HTML, for filters="category,delivery" (options shortened):

<form id="arlo-event-filter" class="arlo-filters" method="get" action="https://example.com/events/">
  <select aria-label="Categories" id="arlo-filter-category" class="arlo-filter-category" name="arlo-category">
    <option value="">All categories</option>
    <option value="2-level-1-beginners">Level 1 Beginners</option>
    …
  </select>
  <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/events/">
    <a role="button" href="https://example.com/events/" class="button">Reset</a>
  </div>
</form>

Usage

  • Dropdowns always appear in the plugin's own order (category, delivery, location, template tag, state), whatever the order in filters.
  • A dropdown with no options is left out, and nothing at all is output when none of the dropdowns has options.
  • The chosen values are added to the page address and filter the list on the page.

Attributes

AttributeType / valuesDefaultDescription
filters Comma-separated list of: categorydeliverylocationtemplatetagstate category,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 names button The class of the reset link.
hidereset Option: true Not set Since 5.1.0. Hides the reset link with an inline style; it stays in the page for scripts.

Also accepts the universal attributes; wrap goes around the whole form.

[arlo_schedule_filters]

The filter form for the Schedule: the same as [arlo_event_template_filters], but the form and the reset link point to the Schedule page.

Use in: the Schedule template.

Structure

[arlo_schedule_filters
    filters="category,location,delivery,state"
    resettext="Reset"
    buttonclass="button"]

Output (example)

Rendered as HTML, for filters="location,state" (options shortened):

<form id="arlo-event-filter" class="arlo-filters" method="get" action="https://example.com/schedule/">
  <select aria-label="Locations" id="arlo-filter-location" class="arlo-filter-location" name="arlo-location">
    <option value="">All locations</option>
    …
  </select>
  <select aria-label="States" id="arlo-filter-state" class="arlo-filter-state" name="arlo-state">
    <option value="">Select state</option>
    …
  </select>
  <div class="arlo-filters-buttons">
    <input type="hidden" id="arlo-page" value="https://example.com/schedule/">
    <a role="button" href="https://example.com/schedule/" class="button">Reset</a>
  </div>
</form>

Usage

  • Dropdowns always appear in the plugin's own order (category, delivery, location, template tag, state), whatever the order in filters.
  • A dropdown with no options is left out, and nothing at all is output when none of the dropdowns has options.

Attributes

The same as [arlo_event_template_filters]: filters, resettext, buttonclass and hidereset. Also accepts the universal attributes.

[arlo_template_region_selector]

Outputs a dropdown of your regions, with the current region selected. Choosing a region reloads the page for that region.

Use in: the Catalogue, Schedule, Event and Online activities templates.

Structure

[arlo_template_region_selector]

Output (example)

Rendered as HTML, for the regions set up on the Regions tab:

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

Usage

Attributes

None. Accepts the universal attributes.

[arlo_template_search_region_selector]

Outputs the same region dropdown as [arlo_template_region_selector], for the Event search template.

Use in: the Event search template.

Structure

[arlo_template_search_region_selector]

Output (example)

Rendered as HTML, for the regions set up on the Regions tab:

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

Usage

  • Nothing is output when no regions are set up.

Attributes

None. Accepts the universal attributes.

[arlo_breadcrumbs]

Outputs a breadcrumb trail: a link to the page the list is on, then the categories down to the selected category, and on a single event, presenter or venue page the title of the page.

Use in: any of the page templates. It is most useful on the Event, Presenter and Venue pages, where it links back to the list page and shows the current page, and on the Catalogue and Schedule, where it also shows the selected category. The category part appears when the visitor arrived through a category.

Structure

[arlo_breadcrumbs]

Output (example)

Rendered as HTML, on the Catalogue with the category /events/cat-13-coaching/ selected:

<div class="arlo-breadcrumbs breadcrumbs">
  <div class="outer">
    <div class="inner">
      <ul>
        <li class="root"><a href="https://example.com/events/">Events</a></li>
        <li><a href="https://example.com/events/cat-12-leadership/">Leadership</a></li>
        <li><a href="https://example.com/events/cat-13-coaching/">Coaching</a></li>
      </ul>
    </div>
  </div>
</div>

Usage

  • The category trail follows the category in the page address. Without one, only the first link is output.
  • The first link is the page title of the host page the template is shown on, for example Events.
  • For markup you control, such as separators and attributes, use [arlo_category_breadcrumb].

Attributes

None. Accepts the universal attributes.

See also

  • Event related shortcodes for [arlo_event_list_item], the event dates and locations, [arlo_no_event_text], [arlo_timezones] and the suggestions [arlo_suggest_templates], [arlo_suggest_datelocation] and [arlo_suggest_private_datelocation].
  • Global shortcodes for the page shortcodes [arlo_event_template_list], [arlo_schedule] and [arlo_event_template_search_list].
  • Category related shortcodes and [arlo_group_divider] for the category tree, headings and dividers used with the list.