Archives page for Regulus

Think I just had a brilliant idea! I have them every now and then :D. The aim of this little mini tutorial is to show how to create an Archives page in Regulus as shown in the image below.

screengrab of global navigation of this site

As a visitor of my site you’d probably be well aware that I change look and feel of my site occasionally. These are called themes within WordPress the engine that runs this site. There are many free and paid WordPress themes floating on the internet but it isn’t always easy to find one that suits ones every need. And among a select one that I like Regulus from Binary moon has a rather soft spot for me. Why Regulus you ask? Its squeaky clean, really simple and conforms to a Strict DTD. But it does lacks an in-built archives page option. After leaving a comment for Ben I decided to have a crack at it and it took me less than 5 minutes to have this up and running. So if you’re using Regulus and want an archive Page get ready. I promise it’ll be less than 5 minutes to get you going.

  • in your …/wp-content/themes/regulus/ director create a new file and call it amit.php
  • Edit the file amit.php and save the following code in it.

<?php
/*
Template Name: Archives with Content
*/
?>
< ?php get_header(); ?>
<div id=”content”>
<p>Visit articles by date or by category.</p>
<h3>Archives by Month:</h3>
<ul>< ?php wp_get_archives(’type=monthly’); ?></ul>
<h3>Archives by Category:</h3>
<ul>< ?php wp_list_cats(); ?></ul>
</div>
< ?php get_sidebar(); ?>
< ?php get_footer(); ?>

Go to your admin console in WordPress and then head to the Manage Tab. Once there, click on the Pages subtab.

screengrab of the WordPress Admin Console

  • Create a new Page
  • For Page title write Archives, what you write here will appear in the global navigation of your blog.
  • Under Page Template chose Archives with Content from the dropdown menu.
  • I typed in archives in my Page slug but this is optional.
  • Publish. And Enjoy!

Here is a glimpse of the final result.

screengrab of global navigation of this site

Don’t forget to thank Ben for such a great theme. And while on the subject here are some related WordPress things that may take your fancy. Enjoy!

2 Responses to “Archives page for Regulus”


  1. 1 Ben

    Hey Amit - glad you got it all worked out :) It looks pretty good too!

  2. 2 Amit

    Thanks Ben, Regulus is awesome! Thanks for your great work.

  1. 1 Archives page for Regulus

Leave a Reply