Archive
Access archive page data. Available on category, tag, author, date, post type, and search archive pages.
All Fields
| Field | Arguments | Returns | Description |
|---|---|---|---|
title | — | string | Archive title |
description | — | string | Archive description |
type | — | string | Archive type identifier |
Basic Fields
{{ archive.title }}
{{ archive.description }}
{{ archive.type }}
Archive Types
The type field returns an identifier for the current archive:
| Type | Description |
|---|---|
category | Category archive |
tag | Tag archive |
author | Author archive |
date | Date archive |
post_type | Post type archive |
taxonomy | Custom taxonomy archive |
search | Search results |
Common Patterns
Display archive header
<h1>{{ archive.title }}</h1>
{{ archive.description }}
Conditional archive styling
archive-{{ archive.type }}
Check archive type
{{ archive.type == 'search' ? 'Search Results' : archive.title }}