Archive
An Archive template is the page that lists posts: the blog, categories, tags, author pages, date archives and – without a Search Results template – the results of a search.
Archive layout
An Archive template works in one of two ways. Choose it in the Archive layout option of the template.
| Layout | How it works |
|---|---|
| Whole archive | The template is the whole page. Put the Archive Title on top and list the posts with the Posts widget, its query set to Current query. Recommended. |
| Repeat for each post | The template is one post and repeats with pagination – the classic mode of version 1. Choose the Width (Boxed or Full width) and optionally a Sidebar (a Section template). |
Build a blog archive
- Create a template of the type Archive.
- Add Archive Title. It shows the name of the category, tag or author; on search results it shows the searched words and can show the number of results.
- Add Posts. Keep Query › Posts on Current query (archive, blog, search), so the list follows the archive the visitor opened.
- Choose the columns and a Card – the built-in card or your own Post Card – and set Pagination to Numbers or Previous / Next.
- Publish and add the condition All archives.
On author archives the Author Box shows the author of the archive, so it makes a nice header of the page.
Conditions of archives
All archives, Blog (posts page), Search results, Author archive, Date archive, Categories, Tags, other taxonomies and the archives of custom post types. A category condition with chosen categories also covers their child categories.