Tag basics

Textpattern tags are an indespensible feature of Textpattern. They provide a markup-like approach to working with Textpattern’s core functionality without having to know any PHP. The functions themselves represent content components, their sources, and a means of displaying them.

The tags may be added to Page templates and/or Form templates in a variety of ways depending on what you are trying to do. The tags are replaced with the content output they fetch, as users move from one page to another in your site.

Below are a series of tag fundamentals, which will get you up and running with Textpattern tags. To learn precise details about the tags themselves, see the Tags Reference.

Tag basics topics

  1. Self-closed versus container tags
  2. Conditional tags
  3. Tag nesting
  4. Parsing tag attributes
  5. Parser and passes
  6. Incorrect tag contexts
  7. Integrated tag notation
  8. Tag escaping
  9. Core short-tags

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