Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cstina

    (@cstina)

    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

    Thread Starter cstina

    (@cstina)

    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.

    Thread Starter cstina

    (@cstina)

    Ahhhh thanks moshu! ??

    So I would just use the template above (posted by maxaud) and save as a template. Very nice.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Create One Link to All Archives ?’ is closed to new replies.