Archive
Access archive page data. Available on category, tag, author, date, and post type archive pages.
All Fields
| Field | Arguments | Returns | Description |
|---|---|---|---|
title | — | string | Archive title |
description | — | string | Archive description |
type | — | string | Archive type identifier |
Archive Types
archive.type returns one of these identifiers depending on the URL being viewed:
| Type | Example URL |
|---|---|
category | /category/news/ |
tag | /tag/breaking/ |
taxonomy | /genre/sci-fi/ (any custom taxonomy) |
post_type | /products/ (custom post type archive root) |
author | /author/john/ |
date | /2026/, /2026/05/, /2026/05/08/ |
archive | Any other archive page (fallback) |
Common Patterns
Display archive header
<h1>{{ archive.title }}</h1>
{{ archive.description }}
Conditional archive styling
archive-{{ archive.type }}
Check archive type
{{ archive.type == 'author' ? 'Posts by ' ~ author.name : archive.title }}