Textpattern CMS Template Tags

<txp:article_id /> single tag, 0 attributes

article_id

The article_id tag is a single tag which returns the numeric ID of the article being displayed. This number will also be reflected as a part of the article permanent URL if it has been chosen as the Permanent link mode in the Basic Preferences tab.

Related: if_article_id

<txp:article_id /> 2 examples

Hyperlinked to the article

<txp:permlink><txp:article_id /></txp:permlink>

Other tags used: permlink

Conditional use

This will only display the hyperlinked article ID when on an individual article page.

<txp:if_individual_article>
Article ID: <txp:permlink><txp:article_id /></txp:permlink>
</txp:if_individual_article>

Other tags used: if_individual_article, permlink