103

Creating a Custom Archives Page Template
First thing you need to do is to create a page template for the custom archives page. Simply open a new file in your text editor (i.e Notepad) and name it page-archive.php. Next, Add the following lines of code at the top:

1
2
3
4
5
<?php
/*
Template Name: Archives
*/
?>
Upload the page-archive.php in your WordPress themes folder, and you have created an Archives page template. Now we need to make sure that this page template matches the design of your site. Copy the content of your page.php file located in your theme’s folder and paste it in page-archive.php.

Below is an example of how your page-archive.php file would look like: