Meta author

On this page:

Syntax

<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" />

Attributes

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

escape="html" v4.6.0+
Escape HTML entities such as <, > and &.
Values: html or unset.
Default: html.
format="boolean" 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.

Examples

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" />

Genealogy

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 write an issue and we’ll fix it.