Skip to main content

A page showing more than one post in the main loop.

A page showing more than one post in the main . The default template for archives is archive.php, but more specific templates will be preferred. See 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.