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!

Possibly Related Articles

  1. Themes, Templates don’t cut it When I had hand rolled my entire design for Karmakars.com, though simple sans flickr, del.icio.us and all those moronic buzz, it was nice and I was proud of it. I really was. No matter what...
  2. Notify Google with your XML Sitemap As much as it is important to have a good site with clean valid links, its equally important to have a sitemap that is UPTODATE and functional. Generally speaking when we talk about Sitemaps for...
  3. Page 13 of 12 – the mind boggles… I was sent a Mircosoft Word document with 12 pages of information to go out on a website. Normally I don’t print unless I really really need to but I did this time. The file...
  4. WordPress Themes Here is a list of WordPress Themes that has caught my attention. They are a mis of paid and free themes. If you’re looking for a theme for your WordPress installation this will keep you...

2 Responses to “Archives page for Regulus”


Leave a Reply