Support » Fixing WordPress » Creating separate archives page?

  • I’ve seen a number of WP blogs that have removed the archives list from the main page and placed it on a separate page. I’m curious as to how you accomplished this?
    Is it simply a matter of creating a separate page, named as an example: archives.php and plugging the archives function on it (of course with all of the other necessary goodies)?
    Does anyone have a model setup set of files I could study?
    TIA
    <rb>

Viewing 6 replies - 1 through 6 (of 6 total)
  • Is it simply a matter of creating a separate page, named as an example: archives.php and plugging the archives function on it?

    Yes. Take your index.php file, get rid of the post loop and replace it with an archive call, save the new file as archives.php. You can do the same thing with links, if your blogroll is getting unwieldy.

    Thanks, WillM. That’s what I thought. Will do some fiddling this weekend.

    melodika

    (@melodika)

    Hi. Does this apply to wordpress 1.5 too? My index.php file only contains the following code:

    <?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    ?>

    Do I need to use page.php instead?

    SpyderFCS

    (@spyderfcs)

    so does the archives.php go in the wordpress directory with the index.php? And what if I am using a theme in 1.5, does it go in that themes folder?

    SpyderFCS

    (@spyderfcs)

    sorry for the double post but I keep getting “fatal error: call to undefined function” when I try to run the archives.php. Now I know my code is correct and I know my file paths are right. Can you not have PHP code and WordPress functions on pages I create like archives.php?

    I also want to know hoe to do this. Anybody pls help. Im a total noobie..

    Ok here’s a few info:
    1. Im using WordPress 1.5
    2. Haven’t touched anything yet (even my index.php)
    3. I want to have a different “page” that shows ONLY my archives. Because i’ll insert this “page” to an i-frame found elsewhere in my site- I do not want my archives beside my index.php like the usual.

    Please help me how to do this. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.