If last article

On this page:



The if_last_article tag is a conditional tag and always used as an opening and closing pair, like this…

    …conditional statement…

The tag will execute the contained statements if the displayed article is the last in the currently displayed list. It will display in both single article and article list modes. Should be used in Textpattern ‘article’ type Form templates.


This tag has no attributes.


Example 1: Add an image after the last article in a list

        <txp:title />
    <txp:posted />
    <txp:author />

<txp:body />
<txp:comments_invite wraptag="p" />

    <img src="https://example.com/footer.jpg" alt="Footer">

Other tags used: permlink, title, posted, author, body, comments_invite.

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