Archives Customization
Updated 2 months ago
Archives are pages with the lists of posts grouped by a specific parameter. There are several types of archives in WordPress:
- Post Type archive - posts with specific post type. Example
- Taxonomy archive - posts with specific taxonomy term. Example
- Author archive - posts by specific author (shows only "posts" and not other post types). Example
- Date archive - posts published in a particular year / month / day (shows only "posts" and not other post types). Example
Post Type Archive #
If the post type has an archive page, a relevant section for it will appear at Theme Options > Archives Layout.
You can customize its appearance by creating and assigning a custom Page Template. In this template, the Post List or Grid element set up to Show "Posts of the current query" will show relevant posts.
This works for all post types except products because the post type archive for products is a Shop page that has a separate settings section.
Taxonomy Archive #
All registered taxonomies assigned to posts and custom post types are listed in the relevant section of Theme Options > Archives Layout.
You can customize their Archive appearance by creating and assigning a custom Page Template. In this template, the Post List or Grid element set up to Show "Posts of the current query" will show relevant posts.
Since Product taxonomies are controlled by a separate WooCommerce logic, their Archive appearance can be customized via the Shop settings.
How to Customize the Archive Page per Specific Term #
Open the relevant taxonomy term edit page and scroll to the "Archives Layout" section. You can customize the appearance of its archive by assigning a custom Page Template.
Author Archive #
The Authors archive section is included at the bottom of Theme options > Archives Layout.
You can customize its appearance by creating and assigning a custom Page Template. In this template, the Post List or Grid element set up to Show "Posts of the current query" will show relevant posts.
All authors share the same archive appearance.
Date Archive #
This is a default WordPress archive that only shows posts for a year / month / day specified in the URL slug.
Example URL for posts published in 2024:
https://mysite.com/2024/
It uses a global Archives appearance from Theme Options > Archives Layout > Archives.
Currently, you cannot customize its appearance separately from global Archives.