Go to main content

Learning Textpattern tags

Textpattern tags are an indispensable 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. Core short-tags

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)