How would I create one link to all Archives?
Example of what I'd like:
http://blog.rbenson.info/archives
Thanks
.
How would I create one link to all Archives?
Example of what I'd like:
http://blog.rbenson.info/archives
Thanks
.
Still need help with this. Anyone?
You could create an archives.php template for pages.
And then make a page and choose it as a template.
Most themes already have this template so you may not need it.
It should look something like this:
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<h2>Archives by Month:</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>You could also goto Create a page under management on the Admin side and change the page template to Archive in the side menu. Creates exactly the same kind of thing Maxaud described.
Samantha
Samantha,
How do you change the template to Archive in the side menu?? Do you mean with a post slug?
If you have more than one Page templates in your theme folder - there will be an option on the right to select a Page template while writing/editing a Page.
Ahhhh thanks moshu! :)
So I would just use the template above (posted by maxaud) and save as a template. Very nice.
This topic has been closed to new replies.