• My website is amanofreason.com. How can I create an archive page on my website that will allow people to easily click on old blog posts that were posted months sometimes even years ago. Any help is much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is a widget for archives under the appearance menu. Does that help?

    Thread Starter golfer300

    (@golfer300)

    Thank you but I am trying to make the archives their own page so it is more visible and easier to use than the sidebar.

    Anonymous User 7265597

    (@anonymized-7265597)

    put this code:

    <h3>The Last 30 Posts</h3>
    		</br>
    <?php wp_get_archives(array ('type' => 'postbypost', 'limit' =>'30', 'style' =>'list') ); ?>
    
    <h3>The Archives</h3>
    		<br/>
    		<?php wp_get_archives('type=monthly'); ?>

    in a custom php file in your theme folder – called it archives.php you will need to add the header and footer and some html to match your theme.

    create a page in the admin called archives and use this page as your custom template.

    edit:

    the easiest way to make sure it matches your theme is to copy the code from another one of the php files in your theme folder. single.php for example.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Creating a Archive Page’ is closed to new replies.