Skip to content

Supported shortcodes

Use the two shortcode names implemented in MetaSprout beta.

MetaSprout beta2 min read
Example
[metasprout_layout connection="1" id="YOUR_LAYOUT_ID"]

Copy the real shortcode from Layout Studio → Place on a page. The values above are illustrative.

Attribute Purpose
connection Required numeric event connection ID.
id Required saved layout ID from Layout Studio.
instance Optional instance identifier for independent controls on repeated placements. Prefer the generated default unless managing this explicitly.

The same shortcode renders presentation, presenter or sponsor layouts according to the saved design. Configure fields, filters, sort options, pagination and styles in Layout Studio, not through invented shortcode attributes.

Basic field listings

Example
[metasprout connection="1" type="presenter" fields="PresenterFirstName,PresenterLastName,PresenterBiographyText" labels="First name,Last name,Biography" limit="10"]

This produces a basic listing, not a saved Layout Studio design. Every requested field must be approved for the record type, and public displays must be enabled. The source field names must exist in your event.

Attribute Default and behavior
connection Required numeric connection ID.
type session by default; also presenter or sponsor.
fields Required comma-separated exact field names; at most 12.
labels Optional comma-separated labels, one per field.
limit Records per page, 1–50; default 20.
filter_field Optional approved field used for exact matching.
filter_value Required when supplying filter_field; exact, case-sensitive match.
order_by Optional approved field used for text ordering.
order ASC by default, or DESC.

The basic listing escapes field values as text. It does not interpret stored biography HTML as rich markup. Text ordering is not an automatic date parser.

A biography filtered by name

Example
[metasprout connection="1" type="presenter" fields="PresenterBiographyText" labels="Biography" filter_field="PresenterLastName" filter_value="Smith" limit="1"]

Approve both the biography and filter field. This matches a surname, not a unique person. limit="1" sets the page size; it does not make the match unique, and additional matching records can be paginated. Do not use this as an exact-person identifier.

A presenter-by-ID picker is not available in beta. There is no supported presenter-ID attribute to substitute here.

Unsupported examples

metasprout_schedule, metasprout_presenters and metasprout_archive are not registered shortcode names. There is no event attribute or implicit active-event fallback for the two supported shortcodes.

[metasprout connection="1"] is incomplete because it has no explicit fields. It is not an archive listing.

Related: Place a layout and Multiple events.