single post blog archiving (3 posts)

  1. Anonymous
    Posted 11 years ago #

    Hey folks. After getting wordpress up and running on my other site http://www.retardedjimmy.com, I've decided to go back into the abyss and I'm working on a (hopefully) more artistic single post blog at http://mikeschramm.com.
    I want it to be really simple, but I want people to be able to read all past posts, of course. Instead of putting archives on the front page, I'd rather link to a page that has a list of archives by month. From that, they can click on a month, and get a list of archives by day (with titles-- I'm only going to have one post per day). And then from there, they click to the individual archive page.
    It sounds hard and I'm sure it'll be hard, but I thought I'd see if anybody has any suggestions before I jump into the fray. My guess is that I'll have to link to my own php page, to query the database directly for archives. We'll see. If anyone has any input, let me know.

  2. Anonymous
    Posted 11 years ago #

    bah. Not hard.
    I deleted all the "post" stuff out of index.php and resaved it as archive.php. Then, instead of the Loop, I just called archives
    <?php wp_get_archives('type=monthly'); ?>
    Then, in index.php, I did a quick
    <?php if (0 == m) { ?>'
    To see if we were in a monthly archive. If we were, I changed the post loop to show the archive format (date and title) instead of the whole post, and set the date to permalink to the individual post. Then I closed if...
    <?php } elseif { ?>'
    Put the regular loop here, blah blah blah.
    <?php } ?>
    My next task might be harder, although I hope I'm as wrong about this one. I want to set up a blog-within-a-blog, running a little miniblog in that box inside my main. I'm guessing it won't work just using php-- I'll probably have to use the rss feed of the little blog in the big one. We'll see.

  3. Anonymous
    Posted 11 years ago #

    scratch that, I mean
    <?php if ($m) { ?>
    to test and see if we were in a monthly archive.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.