WordPress.org

Forums

[resolved] Create an archives page (9 posts)

  1. Alex Mills (Viper007Bond)
    Moderator
    Posted 10 years ago #

    How can I create a page to list all my archives on? (like this)

    I've created a WordPress page, http://www.viper007bond.com/archive/, but of course I can't execute PHP in the page. Should I use a PHP execution plugin or is it easy to make a page that uses my template?

  2. lokjah
    Member
    Posted 10 years ago #

    lil different but I would suggest going thru chris's excellent tute.

    http://www.chrisjdavis.org/2005/05/26/secrets-of-wp-theming-part-1/

  3. Lorelle
    Member
    Posted 10 years ago #

    Here is another article that might be of help for creating archives pages:
    http://codex.wordpress.org/Creating_an_Archive_Index

  4. moshu
    Member
    Posted 10 years ago #

    Viper, if you are using the Clean Archives plugin, the code that is seen on your page should be not in the content, but in the archives.php template. If you don't have it, create one in your theme. See also the Codex.
    Then create a new Page by using that template, don't write anything in the content area, just save it and you are done.

  5. Alex Mills (Viper007Bond)
    Moderator
    Posted 10 years ago #

    http://codex.wordpress.org/Creating_an_Archive_Index worked like a charm. Thanks to all! :)

  6. Alex Mills (Viper007Bond)
    Moderator
    Posted 10 years ago #

    Here's the result BTW: http://www.viper007bond.com/archives/ (I added a "s")

  7. Shirohagen
    Member
    Posted 10 years ago #

    OK, I followed this and created an archive page for my blog http://www.holster.co.uk/blog

    The result is here:

    http://www.holster.co.uk/blog/blog-archive/

    but as you can see it hasn't included my sidebars etc and is a little messy. My theme is a tweaked version of Mike Little's Journalized.

    I've obviously done something wrong along the line somewhere, can anyone enlighten me?

    ®

  8. Shirohagen
    Member
    Posted 9 years ago #

    I have added the function from the Clean Archives plugin to the archive page above to add more detail but I'm still unsure as to how to get it to show my sidebars etc...

    Any pointers?

    ®

  9. Open up your page.php and use that as an example. My archive template is just a copy of page.php with a couple little extras thrown in.

    (Basically, you're gonna need to put in <?php get_sidebar(); ?>)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags