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

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.