editing archives page!
-
I would like my archives page to display the titles to all my posts, sorted by month and year. How would I do this? The code to my archives.php is as follows:
<?php /* Template Name: Archives */ get_header(); ?> <div id="container"> <div id="content" role="main"> <?php the_post(); ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php get_search_form(); ?> <h2>Archives by Month:</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> <h2>Archives by Subject:</h2> <ul> <?php wp_list_categories(); ?> </ul> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>
[Please use the code buttons when posting code here]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘editing archives page!’ is closed to new replies.