Shortcodes

Shortcodes are Solodev's templating language — small [bracketed] tags that pull in data, control page flow, or render a widget, written directly alongside HTML in a page's markup. They're parsed server-side before a page is served.

[google_website_search google_cse_id="XXXXXXXXXXXXXXXXXX"]

Self-closing shortcodes look like [shortcode attr="value"]. Enclosing shortcodes wrap content: [shortcode attr="value"]...content...[/shortcode]. Double curly braces `` reference a content field inside an enclosing shortcode like [repeater] or [entry].

Categories

Name Description
Core Fundamentals: admin/frontend gating, asset files, layout and formatting, string helpers, dates, error reporting.
Extended Conditionals, filters, Google Search, and other add-on integrations.
Page Page and folder metadata — titles, descriptions, navigation, breadcrumbs.
Module Pull and filter entries from a Datatable or Calendar module: repeaters, detail pages, categories, tags, pagination.
User Login, signup, and account-management forms for secured areas of a site.

Writing your own

A website can register its own PHP file of custom shortcodes, on top of the built-in ones. See Building Custom Shortcodes.