Tag basics

Textpattern tags are arguably the most important feature of Textpattern. They represent a shorthand method for calling functions defined inside Textpattern core. The functions themselves represent content components, their sources, and 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 tag reference.

Tag basics topics

  1. Self-closed versus container tags
  2. Conditional tags
  3. Tag nesting
  4. Parsing tag attributes
  5. Incorrect tag contexts

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.