Creating a Wordpress Archive

Discussion in 'WordPress' started by carmen, May 23, 2007.

  1. #1
    The WP template that I am using came with a premade About page, but not an Archive template.

    Would someone have some premade code and instructions on how to create an Archive of older posts.

    I would like to create something like http://www.johnchow.com/archives/ where I can have an archive divided by category, last 50 posts, and by month.

    Thank you
     
    carmen, May 23, 2007 IP
  2. mooiness

    mooiness Peon

    Messages:
    409
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mooiness, May 23, 2007 IP
  3. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    http://www.blazed-up.com/archives
    Something like this ? ;)
    I could do it for you,no plugins needed.
    Edit: Actually just pm me for the code, your blog will also need a plugin that allows posts/page to run PHP.

    Edit2: I just checked out john's archives, if only I could figure out how he got the numbers and dates next to them:p Better do my research.
     
    BLaZeR, May 24, 2007 IP
  4. carmen

    carmen Peon

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I did doublecheck with John this morning. He uses a premade template. When you do a view source, I believe it is Misty Look 101 ( http://themes.wordpress.net/columns/2-columns/831/mistylook-101/ )

    Not being familiar with coding, I'm not sure if there is a way to import the archive template from this theme into my own?

    thx

    Carmen
     
    carmen, May 24, 2007 IP
  5. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #5
    As mooiness said: KG Archives is great.

    I use it on all my blogs and it fits into my templates pretty nicely.
    Activate plugin, create a page called 'archive' with the KG archive tag in it, done.
     
    Kerosene, May 24, 2007 IP
  6. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I pm'ed you the code I am using. If you find out how too add the number of posts for the categories be sure to let me know :p
     
    BLaZeR, May 24, 2007 IP
  7. mooiness

    mooiness Peon

    Messages:
    409
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    @carmen: probably not as the source that you are viewing is processed and output via PHP into HTML. So ultimately, you have to ask John for the PHP code and/or plugin that he uses.

    Or maybe Blazer's code might do the trick.
     
    mooiness, May 24, 2007 IP
  8. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #8
    BLaZeR, May 25, 2007 IP
  9. carmen

    carmen Peon

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi Blazer,

    Thank you for the detailed explanation and support. That's an outstanding explanation.

    I ended up with two issues and figure it may have something to do with my wordpress theme rather then the code.

    The issues are

    1. Under last 50 entries, there is no space between the date and the first word in the blog title

    eg 16 May 2007Blog Title

    Is there any way to force a space between the two?

    2. I use a 3 column blog theme with content in the far left. Rather then showing the archive integrated in the blog template, ie archive in the left column and my two link columns on the right, the archive shows up at the very top of the page and then the 3 column blog template shows up below the archive.

    I have selected "archives" under page template.

    Would you have any thoughts on how I might be able to resolve this.

    Thank you
     
    carmen, May 25, 2007 IP
  10. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
  11. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Well if you have selected the archives under page template then it's the coding in the templates.php. Have you tried just using the code under default template?
     
    BLaZeR, May 25, 2007 IP