On this page:


<txp:newer />

The newer tag is both a single tag and a container tag. The tag should be used in a page after an article tag.

Textpattern will replace this tag with a link to the next list of articles in the sort order. The container tags wrap the text or tag assigned to the link. As a single tag it outputs the URL for the next list page.

An article list consists of the assigned number of articles set by the article tag. If there are no articles available having ‘Newer’ status (articles ranked higher, or newer, in the present sort criteria than the present top of page article) <txp:newer /> will not display unless the showalways attribute is set to 1. It is normally seen used in tandem with older.

Given a <txp:article limit="5" /> tag on the page in question, <txp:newer /> will page down five articles at a time from the most oldest post forward in time to the most recently posted article.

Note: This tag is context-sensitive, meaning it will only fetch content from the section or category being viewed.


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

escape="html" v4.3.0+
Escape HTML entities such as <, > and &.
Values: See the tag escaping documentation for all possible values.
Default: html.
rel="text" v4.7.0+
HTML rel attribute to be applied to link.
Default: unset.
Show wrapped value even when no older page exists.
Values: 0 (no) or 1 (yes).
Default: 0.
title="text" v4.3.0+
HTML title attribute to be applied to link.
Default: unset.


<txp:newer rel="prev">Newer</txp:newer>
<a href="<txp:newer />">
    <txp:image name="right-arrow.gif" />

Other tags used: image.

    <txp:image name="right-arrow.gif" />

The difference between examples 2 and 3 is that the tags in example 2 will display the image even if there are no newer articles, those used in example 3 won’t.

Other tags used: image.


Version 4.7.0

rel attribute added.

Version 4.3.0

title attribute reintroduced after being accidentally removed.
escape 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.