HTTP/2 301
date: Sat, 27 Dec 2025 09:47:43 GMT
content-type: text/html
content-length: 225
location: https://docs.textpattern.com/tags/shortcodes/
expires: Thu, 01 Jan 1970 00:00:01 GMT
cache-control: no-cache
content-security-policy: base-uri 'self';connect-src 'self';default-src 'none';font-src https://textpattern.com 'self';form-action 'self';frame-ancestors 'none';frame-src 'none';img-src https://textpattern.com data: 'self';manifest-src 'self';media-src 'self';object-src 'none';script-src https://textpattern.com https://ajax.googleapis.com/ 'self';style-src https://textpattern.com 'self';
permissions-policy: camera=(),fullscreen=(self),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),notifications=(self),payment=(),push=(self),speaker=(),sync-xhr=(self),vibrate=()
referrer-policy: strict-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4By2FMC7nHXLoKhPtS5Ok8r9SPGH91K%2B7Oh7r0MQ%2FoPayAT9h3UcT8lTQ0Fg4109zyDnYXBs%2BJGn8yqzr0VIHpKwJNOrPHufEqo0bqp75lfbAN7n"}]}
server: cloudflare
cf-ray: 9b47e5ec19da3a46-BOM
HTTP/2 200
date: Sat, 27 Dec 2025 09:47:43 GMT
content-type: text/html; charset=UTF-8
last-modified: Sat, 27 Dec 2025 09:45:01 GMT
vary: Accept-Encoding
etag: W/"694faa9d-332d"
expires: Thu, 01 Jan 1970 00:00:01 GMT
cache-control: no-cache
content-security-policy: base-uri 'self';connect-src 'self';default-src 'none';font-src https://textpattern.com 'self';form-action 'self';frame-ancestors 'none';frame-src 'none';img-src https://textpattern.com data: 'self';manifest-src 'self';media-src 'self';object-src 'none';script-src https://textpattern.com https://ajax.googleapis.com/ 'self';style-src https://textpattern.com 'self';
permissions-policy: camera=(),fullscreen=(self),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),notifications=(self),payment=(),push=(self),speaker=(),sync-xhr=(self),vibrate=()
referrer-policy: strict-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
content-encoding: gzip
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=MqMe5Z%2BjMwNT8%2BMPdYHgjMHVUG4rSa%2F%2Bsm18HVMnIjeyhWEyw78FhYvWEVjOSr2IuHPAAVAXG%2B1OiOHMiuxb%2BNg7Fkohye8lgBFWIGreFnLxox6P"}]}
server: cloudflare
cf-ray: 9b47e5ed8ad43a46-BOM
Shortcode examples / Textpattern CMS user documentation
Go to main content
Documentation
Shortcodes
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
JavaScript is currently disabled in your browser - activate it for the best experience.