Create a Custom Archive Page Template in WordPress easily

Today i will tell you how to ‘Create a Custom Archive Page Template in WordPress easily’

If you excite your very first time visitor then the opportunities are extremely high that they might seek your old posts, Unfortunately the majority of the bloggers don’t make this procedure basic sufficient for them, that’s why some professional bloggers use a Archive web page. An archive page resembles a sitemap for your readers to navigate via your hidden materials (old blog posts), A visitor could quickly navigate to your old write-ups based on a month, year, group or even by tags.

In this simple WordPress tutorial I am going to reveal you just how make your custom made archive web page within few mins.

So simply produce a brand-new page and also on best sidebar select the page design template as “Archive” and also publish it. Even though its incorporated you could still try this tutorial to develop your own version of Archiv web page. I have actually divided the process right into 2 parts

  1. Developing an archive web page Template
  2. Producing an archive web page

Do not obtain confused by the terms, The initial component is to produce a web page template for archive which can be delegated to any sort of page to produce a archive page. So allows begin.

Creating archive page template type

In first step you have to make custom template type for create archive page. you can simply copy past your theme file named ‘page.php’ and renamed to template-archive.php. Paste below code in your content div of your php file.

above code will show blog post with categories, month and recent post. you can check my Archive Page for example of demo. thats it, now upload this page to your theme root folder.

you can add more block to show more types to show your blog post in your archive page, below code will show different result in your archive page.

Create an archive page

Now Go to your WordPress dashboard and Pages >> Add New. Add your archive page with any name and right side you can find option to select page template. Choose “Archives” template and publish it.

archive-page-aaditya

Below Archive template full file code

Sitemap or Archive page using Plugin

If you want to add sitemap or archive page using plugin then you and add plugin called ‘WP Sitemap Page’.

An easy way to add a sitemap on one of your pages becomes reality thanks to this WordPress plugin. Just use the shortcode [wp_sitemap_page] on any of your pages. This will automatically generate a sitemap of all your pages and posts.

Be carefull, this plugin do not generate an XML sitemap. It only allow you to list all your pages and posts on a single page. This is a sitemap for human not for search engines bots.

you have successfully created a custom archive page template for your WordPress theme. If you have any feedback please let me know through comments below.