A page showing more than one post in the main loop.
A page showing more than one post in the main loop. The default template for archives is archive.php
, but more specific templates will be preferred. See archive-template for details.
The conditional function to check whether the current request is an archive is is_archive()
. This might not work if you are using a custom loop instead of filtering pre_get_posts
.