Go to main content

Shortcode examples

Beginning in Textpattern 4.7.0, you can use the new custom short-tags and shortcodes functionality to create reusable partials of markup that define things like content elements, widgets, and so forth, then make use of them by adding a simple, custom tag in your articles instead of lengthy, complex blocks of raw HTML.

(The idea is similar to functionality previously provided by the smd_macro or rah_beacon plugins, which this new core functionality now make obsolete.)

Following are shortcodes you can put to use immediately in a 4.7.0 installation of Textpattern. Everyone is welcome to contribute new shortcodes for community benefit. Each shortcode example must be its own documentation page.

Available shortcodes

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)