Tag basics

Textpattern tags are 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 call 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. Incorrect tag contexts
  6. Short-form versus long-form usage

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