Meta author

On this page:


<txp:meta_author />

The meta_author tag is a single tag, used in the head of an individual article page template. Textpattern will replace this tag with an HTML meta tag as follows:

<meta name="author" content="Article author's name" />


Tag will accept the following attributes (case-sensitive):

escape="html" v4.6.0+
Escape HTML entities such as <, > and &.
Values: See the tag escaping documentation for all possible values.
Default: html.
format="value" v4.6.0+
Display as <meta> tag or as raw value.
Values: meta or unset.
Default: meta (display as a <meta> tag).
title="boolean" v4.3.0+
Whether to display the author’s login name or real name.
Values: 0 (login name) or 1 (real name).
Default: 0.


Example 1: Use article author for meta tag content

Tag in the head of an individual article page (article’s author name is ‘Biff Tannen’):

<txp:meta_author />

This results in the following:

<meta name="author" content="Biff Tannen" />


Version 4.6.0

escape and format attributes added.

Version 4.3.0

title attribute added.

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