Widgets
The plugin includes four widgets for your theme's widget areas. They show data from your Arlo platform, so they display nothing useful until you have synchronized it.
These widgets are for classic themes and may not work on block themes
Most current WordPress themes are block themes, which have no widget areas and no Widgets screen. The Arlo widgets are classic WordPress widgets, and the plugin has no block versions of them. On a block theme they may not be available, or may not work fully.
On a classic theme with widget areas, add them from Appearance > Widgets or the Customizer. On a block theme, do not rely on them. WordPress's Legacy Widget block can place a classic widget, but Arlo does not provide or test block theme support for these widgets.
Widgets are optional. The bundled templates already include a region selector and a search field where they apply, so you can use the plugin without any of the widgets.
| Widget | Shows |
|---|---|
| Arlo Upcoming Events | A short list of upcoming events. |
| Arlo Categories | The category tree. |
| Arlo event search | A search box for events. |
| Arlo region selector | A region chooser for multi-region platforms. |
Arlo Upcoming Events
Outputs a list of the next upcoming events, using a template you can edit.
| Setting | Description | Default |
|---|---|---|
| Title | The widget heading. | Upcoming event |
| Number of events to show | How many events to list. Enter a number greater than zero: an empty field is saved as 0, and the widget then lists no events. | 5 |
| Filter by event tag | Choose one tag from your platform to list only events with it. | No filter |
| Filter by template tag | Choose one tag to list only events whose event template has it. When both tags are chosen, events must match both. | No filter |
| Template | The HTML and shortcodes used for the list. See below. | The selected theme's widget template |
Template
The template must contain an [arlo_upcoming_list_item] block, which repeats once for each event. Inside it you can use the template level shortcodes for an event. The widget fills the Template box with the theme's template, which is a good starting point. If the box is empty, the same theme template is used.
<ul class="arlo-widget-upcoming">
[arlo_upcoming_list_item]
<li>
[arlo_event_start_date format="j M"]
[arlo_event_template_permalink wrap='<a href="%s">'][arlo_event_template_name]</a>
[arlo_event_location]
</li>
[/arlo_upcoming_list_item]
</ul>
Only users who are allowed to add raw HTML (the WordPress unfiltered_html capability) can edit the template. That is administrators on a single site and super administrators on a multisite network. Other users see it read-only, and the stored template is kept. See Templates in the settings.
Arlo Categories
Outputs the available categories as a list, like a category tree. Each links to the catalogue filtered by that category. If there are no categories, it shows "No categories to display."
| Setting | Description | Default |
|---|---|---|
| Title | The widget heading. | The event label followed by Categories, such as Event Categories |
| Depth | How many levels of categories to show. 0 shows every level. | 5 |
| Match category | When ticked, on a page that is already filtered by a category the widget lists that category's children. When unticked it always lists the top-level categories. | Unticked |
Arlo event search
Outputs a search box. Submitting it opens your Event search page, which lists the results using the [arlo_event_template_search_list] shortcode.
| Setting | Description | Default |
|---|---|---|
| Title | The widget heading. | Event search |
The widget needs the Event search list page to be set up, and shows nothing at all without it. For a search box with your own placeholder or button, put [arlo_search_field] in a template instead.
Arlo region selector
Outputs a dropdown that lets visitors choose their region. Choosing one takes them to the same page in that region's address, and the choice is remembered. It is for platforms with more than one region. Without regions on the Regions tab, only the title is shown.
| Setting | Description | Default |
|---|---|---|
| Title | The widget heading. | Region selector |
The widget does the same job as the [arlo_template_region_selector] shortcode, for use outside a template. See also Regions. The dropdown only appears once you map regions on the Regions tab, so leave the widget out if you do not use regions.