Go to main content

Meta author

Contents

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) as well as the global attributes :

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.

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.

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. :)