Support » How-To and Troubleshooting » [Resolved] Create One Link to All Archives ?
8 years, 9 months ago
How would I create one link to all Archives?
Example of what I’d like:
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:
Template Name: Archives
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<h2>Archives by Month:</h2>
<?php wp_get_archives('type=monthly'); ?>
<h2>Archives by Subject:</h2>
<?php wp_list_cats(); ?>
<?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.
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.