Arlo home

Presenter related shortcodes

These shortcodes show your Arlo presenters. Use them in two templates: the Presenters list template, which repeats a block for each presenter, and the Presenter template, which shows one presenter and the events they deliver.

The Presenters list page itself is created by the [arlo_presenter_list] global shortcode, which outputs the Presenters list template.

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

Contents

Quick start

A minimal Presenters list template: a photo, name and link for each presenter, then the page links. The photo, name and link shortcodes work between the list item tags.

[arlo_presenter_list_item limit="8"]
    <div class="presenter">
        [arlo_presenter_profile_avatar]
        <h3>[arlo_presenter_name]</h3>
        [arlo_presenter_permalink wrap="<a href='%s'>"]View profile</a>
    </div>
[/arlo_presenter_list_item]
[arlo_presenter_list_pagination limit="8" wrap="<div class='pager'>%s</div>"]

Rendered as HTML:

<div class="presenter">
  <img class='noimage' src='https://example.com/wp-content/plugins/arlo-training-and-event-management-system/…/presenter_placeholder.png' alt='Amara Cole' />
  <h3>Amara Cole</h3>
  <a href="https://example.com/presenters/306-amara-cole/">View profile</a>
</div>
<div class="presenter"> … </div>
<script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>
<div class="pager">
  <span aria-current="page" class="page-numbers current">1</span>
  <a class="page-numbers" href="https://example.com/presenters/page/2/">2</a>
  <a class="next page-numbers" href="https://example.com/presenters/page/2/">Next &raquo;</a>
</div>

A minimal Presenter template: the same shortcodes now show the one presenter whose page is open, followed by the events they deliver:

<h1>[arlo_presenter_name]</h1>
[arlo_presenter_profile_avatar]
[arlo_presenter_profile wrap="<div class='profile'>%s</div>"]
[arlo_presenter_events_list wrap="<h2>Events</h2>%s"]

Rendered as HTML:

<h1>Elena Maren</h1>
<img class='noimage' src='https://example.com/wp-content/plugins/arlo-training-and-event-management-system/…/presenter_placeholder.png' alt='Elena Maren' />
<div class="profile"><p>Elena facilitates responsible AI workshops.</p></div>
<h2>Events</h2>
<ul class="presenter-events">
  <li><a href="https://example.com/events/109-data-storytelling/">Data Storytelling</a></li>
  <li><a href="https://example.com/events/101-prompting-chats-and-privacy/">Prompting, Chats, and Privacy</a></li>
</ul>

[arlo_presenter_list_item]

Repeats the content between its tags once for each presenter, in alphabetical order by first name then last name.

Type: Enclosing. Put your markup and other shortcodes between [arlo_presenter_list_item] and [/arlo_presenter_list_item].
Use in: the Presenters list template.

Structure

[arlo_presenter_list_item limit="8"]
    <div class="presenter">
        [arlo_presenter_profile_avatar]
        <h3>[arlo_presenter_name]</h3>
    </div>
[/arlo_presenter_list_item]

Output (example)

Rendered as HTML, for two presenters on the page:

<div class="presenter">
  <img class='noimage' src='https://example.com/wp-content/plugins/arlo-training-and-event-management-system/…/presenter_placeholder.png' alt='Amara Cole' />
  <h3>Amara Cole</h3>
</div>
<div class="presenter">
  <img class='noimage' src='https://example.com/wp-content/plugins/arlo-training-and-event-management-system/…/presenter_placeholder.png' alt='Elena Maren' />
  <h3>Elena Maren</h3>
</div>
<script type="application/ld+json">{"@type":"ItemList","itemListElement":[…]}</script>

Usage

Repeat limit on the pagination

If you set limit here, set the same value on [arlo_presenter_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 presenter.
  • The presenter shortcodes in this article (name, photo, links, profile and so on) show the presenter of the current repeat when used between these tags.

Attributes

AttributeType / valuesDefaultDescription
limit Integer, 1 or more The WordPress Posts per page setting Number of presenters per page.

Also accepts the universal attributes.

[arlo_presenter_list_pagination]

Outputs the page links for the presenter list. Nothing is output when all presenters fit on one page.

Use in: the Presenters list template, after [arlo_presenter_list_item].

Structure

[arlo_presenter_list_pagination limit="8" wrap="<div class='pager'>%s</div>"]

Output (example)

Rendered as HTML, on page 1 of 3:

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

Usage

Use the same limit as the list item

The pagination does not read the list item. Without the same limit it uses the WordPress Posts per page setting and shows the wrong number of pages.

  • The links use WordPress paging, /page/2/ with pretty permalinks.
  • The output can be empty, so use wrap to add a container that only appears when there are page links.

Attributes

AttributeType / valuesDefaultDescription
limit Integer, 1 or more The WordPress Posts per page setting Number of presenters per page. Must match the limit of [arlo_presenter_list_item].

Also accepts the universal attributes.

[arlo_presenter_name]

Outputs the presenter's first and last name as plain text.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

Structure

<h1>[arlo_presenter_name]</h1>

Output (example)

Rendered as HTML:

<h1>Elena Maren</h1>

Usage

  • A presenter always has a name, so put your own markup around the shortcode rather than using wrap.

Attributes

None. Accepts the universal attributes.

Outputs the address of the presenter's page on your WordPress site.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

[arlo_presenter_permalink wrap="<a href='%s' class='button'>"]Learn more</a>

Rendered as HTML:

<a href="https://example.com/presenters/306-amara-cole/" class="button">Learn more</a>
  • The output is only the address, with no link around it. Use wrap to build the opening <a> tag, as above, and close it yourself after your link text.

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

Outputs the address of the presenter's page in Arlo.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

[arlo_presenter_link wrap="<a href='%s'>Presenter website</a>"]

Rendered as HTML:

<a href="https://example.com/presenters/301">Presenter website</a>
  • The output is only the address, with no link around it. Use wrap to put it in an href.
  • To link to the presenter's page on your own site, use [arlo_presenter_permalink] instead.

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

[arlo_presenter_profile_avatar]

Outputs the presenter's photo as an <img> element, or a placeholder image when the presenter has none.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

Structure

[arlo_presenter_profile_avatar placeholder="images/no-photo.jpg"]

Output (example)

Rendered as HTML, for a presenter whose profile has no image:

<img class='noimage' src='https://example.com/wp-content/plugins/arlo-training-and-event-management-system/images/no-photo.jpg' alt='Elena Maren' />

Usage

  • Arlo has no separate photo field. The photo is the first image in the presenter's profile text. When the profile has an image, it is used as the src and the noimage class is left empty.
  • The image stays in the profile text too, so [arlo_presenter_profile] still outputs it.
  • The alt text is the presenter's name. The noimage class is added only when the placeholder is shown, so you can style it differently.

Attributes

AttributeType / valuesDefaultDescription
placeholder Path to an image, relative to the plugin folder The plugin's built-in presenter placeholder image The image used when the presenter's profile has no image.

Also accepts the universal attributes.

[arlo_presenter_profile]

Outputs the presenter's profile (biography) text, as entered in Arlo.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

Structure

[arlo_presenter_profile wrap="<div class='profile'>%s</div>"]

Output (example)

Rendered as HTML, for a profile of <p>Elena facilitates responsible AI workshops.</p>:

<div class="profile"><p>Elena facilitates responsible AI workshops.</p></div>

Usage

  • The profile is HTML and may contain paragraphs, lists and images.
  • A presenter may have no profile. Use wrap rather than your own tags around the shortcode, so nothing is output when it is empty.

Attributes

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

[arlo_presenter_qualifications]

Outputs the presenter's qualifications, as entered in Arlo.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

Structure

[arlo_presenter_qualifications wrap="<h2>Qualifications</h2><div>%s</div>"]

Output (example)

Rendered as HTML:

<h2>Qualifications</h2><div>MSc Learning Design</div>

Usage

  • Qualifications are often empty. Use wrap so a heading you put in front of them is not left on its own.

Attributes

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

[arlo_presenter_interests]

Outputs the presenter's interests, as entered in Arlo.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

Structure

[arlo_presenter_interests wrap="<h2>Interests</h2><div>%s</div>"]

Output (example)

Rendered as HTML:

<h2>Interests</h2><div>Conversation design</div>

Usage

  • Interests are often empty. Use wrap so a heading you put in front of them is not left on its own.

Attributes

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

Outputs a link to the presenter's profile on one social network. Use it once for each network you want to show.

Use in: the Presenters list template, between [arlo_presenter_list_item] tags, and the Presenter template.

[arlo_presenter_social_link
    network="linkedin"
    linktext="LinkedIn"
    linkclass="social-icon"]

Rendered as HTML, for a presenter with a LinkedIn profile:

<a href="https://www.linkedin.com/elena-maren" aria-label="linkedin" class="arlo-social-linkedin social-icon">LinkedIn</a>

Always set network

Without a valid network nothing is output.

  • Nothing is output when the presenter has no profile on that network, so you can use all three networks in a template and only the ones the presenter has appear.
  • When linktext is set, the class arlo-social- followed by the network is added to the link, so you can style each network. Without linktext the shortcode outputs only the URL.
  • linktext may contain HTML such as an icon element. Do not put your own link inside it, because the shortcode already outputs the link.
AttributeType / valuesDefaultDescription
network Option: twitterfacebooklinkedin None (required) The social network whose profile link to output. The value is not case sensitive.
linktext Text; HTML as allowed in a WordPress post None The content of the link. When it is not set, only the profile address is output, with no link around it.
linkclass Text; one or more CSS class names separated by spaces None Added to the link's classes. Only used when linktext is set.

Also accepts the universal attributes.

An icon link, with icon markup as the linktext:

[arlo_presenter_social_link network="twitter" linkclass="icon-link" linktext='<i class="fa-brands fa-twitter"></i>']
<a href="https://twitter.com/elena_fixture" aria-label="twitter" class="arlo-social-twitter icon-link"><i class="fa-brands fa-twitter"></i></a>

Without linktext, only the address is output, so you can build the link yourself with wrap:

[arlo_presenter_social_link network="linkedin" wrap="<a href='%s'>LinkedIn</a>"]
<a href="https://www.linkedin.com/elena-maren">LinkedIn</a>

[arlo_presenter_events_list]

Outputs a ready-made list of links to the event templates (courses) that the presenter delivers.

Use in: the Presenter template.

Structure

[arlo_presenter_events_list wrap="<h2>Events</h2>%s"]

Output (example)

Rendered as HTML:

<h2>Events</h2>
<ul class="presenter-events">
  <li><a href="https://example.com/events/109-data-storytelling/">Data Storytelling</a></li>
  <li><a href="https://example.com/events/101-prompting-chats-and-privacy/">Prompting, Chats, and Privacy</a></li>
</ul>

Usage

  • Each event template is listed once, by name, in alphabetical order, and links to its page.
  • It works from the presenter whose page is open, so it belongs in the Presenter template only.
  • A presenter may deliver no events. Use wrap so a heading is not left on its own. For control over the markup of each event, use [arlo_presenter_events_list_advanced].

Attributes

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

[arlo_presenter_events_list_advanced]

Repeats the content between its tags once for each event template the presenter delivers, so you can lay out each event yourself with the event template shortcodes.

Type: Enclosing. Put your markup and other shortcodes between [arlo_presenter_events_list_advanced] and [/arlo_presenter_events_list_advanced].
Use in: the Presenter template.

Structure

[arlo_presenter_events_list_advanced wrap="<h2>Events</h2><div class='events'>%s</div>"]
    <div class="event">
        [arlo_event_template_permalink wrap="<h3><a href='%s'>"][arlo_event_template_name]</a></h3>
        [arlo_event_template_summary wrap="<p>%s</p>" digest="160"]
    </div>
[/arlo_presenter_events_list_advanced]

Output (example)

Rendered as HTML, for a presenter who delivers two event templates:

<h2>Events</h2>
<div class="events">
  <div class="event">
    <h3><a href="https://example.com/events/109-data-storytelling/">Data Storytelling</a></h3>
    <p>A fictional catalogue course for practical, accountable learning…</p>
  </div>
  <div class="event">
    <h3><a href="https://example.com/events/101-prompting-chats-and-privacy/">Prompting, Chats, and Privacy</a></h3>
    <p>Plan launches without guesswork.</p>
  </div>
</div>

Usage

  • Between the tags, the event template shortcodes, such as [arlo_event_template_name], [arlo_event_template_permalink] and [arlo_event_template_summary], and [arlo_event_next_running] show the event template of the current repeat.
  • Each event template is repeated once, in alphabetical order by name, and only event templates that have an event delivered by this presenter are included.
  • A presenter may deliver no events. Use wrap on the opening tag for any heading or container, so nothing is output when there is nothing to repeat.
  • It works from the presenter whose page is open, so it belongs in the Presenter template only.

Attributes

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

[arlo_presenter_rich_snippet]

Outputs structured data (JSON-LD) that describes the presenter, for search engines.

Use in: the Presenter template, or between [arlo_presenter_list_item] tags in the Presenters list template.

Structure

[arlo_presenter_rich_snippet link="permalink"]

Output (example)

Rendered as HTML:

<script type="application/ld+json">{"@type":"Person","name":"Elena Maren","url":"https://example.com/presenters/301-elena-maren/","description":"Elena facilitates responsible AI workshops.","sameAs":[…]}</script>

Usage

  • Nothing is shown to visitors; the output is a <script> element for search engines. Put it once in the template, outside any visible markup.
  • [arlo_presenter_list_item] already adds a rich snippet for the whole list, so you do not need this shortcode to describe the list.

Attributes

AttributeType / valuesDefaultDescription
link Option:
  • permalink The presenter's page on your site
  • viewuri The presenter's page in Arlo
permalink Which address is used as the presenter's url in the structured data.

Also accepts the universal attributes.