headermask image

roaming the world and enjoying the scenery...

Sdrawkcab

I hate the way most blogs are ‘backwards.’ The most recent stuff is at the top, and to figure out what has already happened, you need to scroll all the way down to the bottom and then start working your way up, reading everything ‘backwards,’ rather than having everything logical and sensible – starting from the top and going down.

I spent an inexcuseable amount of time last night searching for the right piece of code snippet to put these posts in what I consider to be the correct order, but I finally found it. {BTW, the code, which goes just inside the first <?php get_header(); ?> in the index.php file in the content folder (the main index template) is: <?php
// next line added to reverse post order
$posts = query_posts($query_string .’&orderby=date&order=asc&posts_per_page=-1′);?>
in case you were wondering…}

So, until I change my mind, this blog will be from the top down because that’s the way (uh huh uh huh) I like it (uh huh uh huh).

And oh yes, if you’ve got enough time to be reading someone’s blog every day, so that you never miss anything and never have to go ‘back in time’ to figure out what is going on, then you have entirely too much time on your hands and need to get out more. So there.

Update – October 29, I’ve decided to pull the code and see if I like it any better the old-school way.

If you like the Stutzfamily blog, feel free to subscribe to our rss feed

3 Comments so far (Add 1 more)

  1. Dave, I hate the forward order of the blog. As a seasoned blog reader, I was utterly confused when reading your “forward” reversed blog.

    1. Serene on October 17th, 2007 at 10:13 am
  2. Hi Serene – as an unseasoned blog reader, I always hate having to ‘read up,’ and I’m anticipating that most of the readers will also not be the power bloggers – just family and friends keeping up on what’s going on. I very deliberately set this one up to read in a way that, to me, feels more natural (which, as I mentioned, was pretty hard to figure out how to do). We’ll give it a go for a while, and if it doesn’t work out, then I can always change it back, right?

    Now, besides changing the order (which I’m not going to do right now), is there anything that I could do to make it less utterly confusing for those who are more accustomed to blogs (limiting the number of posts on the main page, for example)? Let me know…

    2. Dave on October 17th, 2007 at 1:20 pm
  3. OK, obviously I have changed my mind, but that’s ok. Just for my own reference, here is the corrected code for doing this:

    Add the first line listed BEFORE the second:

    < ?php query_posts($query_string . "&order=ASC"); ?>
    < ?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    The ‘if(have_posts blah blah is in the index.php file…

    3. Dave on September 11th, 2009 at 3:37 pm

Post a Comment

Your email is never published nor shared.