Archives/Categories Page in WordPress with Kubrick

It’s no secret I’m a big fan of Michael’s Kubrick templates… I didn’t want the list of categories and archives cluttering up the left side of my front page so I moved them into a separate page. Here’s what I did.

I took the Kubrick template file index.php and saved a copy of it as categories.php. Then I scooped out all of the Front Page code and all the Archives page code – leaving the code for a single post’s page. I then created two DIV layers – each 48% wide so they end up side by side.
Then I dropped in the code for a category listing and the code for a listing of archives by month.

<div class="post" style="width: 48%; float: left; text align: left">
<h2><?php _e('Categories'); ?></h2>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1,
0,'','','','','28') ?>

<div class="post" style="width: 48%; float: right; text align: left">
<h2><?php _e('Archives'); ?></h2>
<?php wp_get_archives('type=monthly'); ?>

In the ideal world I’d still like to shoehorn this code back into the index.php file because I like the tidy code of everything in one file.






Leave a Reply

Your email address will not be published. Required fields are marked *