custom_field
Attributes:
- name="fieldname" • Display specified custom field.
- default="value" • Default value to use when field is empty.
- escape="html" • Escape HTML entities prior to echoing the field contents.
Behaviors:
The custom_field tag is a single tag which is used to display the contents of a custom field.
Custom fields are useful if you publish content that has a consistent structure. They are defined in the "Advanced preferences" tab, under the "Custom" heading. You may have up to and including 10 fields. With a default Textpattern installation, you will just see two custom fields with the names "custom1" and "custom2", which you may rename or remove. The contents of custom fields are limited to 255 characters in length. Custom names may include letters (uppercase or lowercase), numbers and under_scores, but no spaces or other special characters. There are certain names reserved by Textpattern, which should not be used to name custom fields. They include: thisid, posted, annotate, comments_invite, authorid, title, url_title, category1, category2, section, keywords, article_image, comments_count, body, excerpt, and status. To remove a custom field, simply clear its name. Once defined, like keywords, you may set values for your custom fields for each post (under "advanced options" in the "write" tab), and may display custom field information in any "article" type form.