• I want to do is sort by date, not reverse date (default). ie: newest posts last. I have a travelogue, and of course, this doesn’t make sense in the “current” order
    I’ve been through the options plenty of times, I just can’t see it. Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Any luck with this yet? I have the same issue. ??

    MYP4

    Thread Starter digitaltoast

    (@digitaltoast)

    Nope, I’ve asked several questions here and had 1 reply. I’m fairly sure these forums are “dead” now, but I can’t find a “proper” support forum! The layout of the forums is VERY confusing, and search sometimes doesn’t work, so that doesn’t help.

    These forums are very much alive, actually. It’s the sheer number of posts that mean some questions get missed. I agree about the layout, though.

    The reason you can’t find an option to sort posts in the order you want is because there isn’t an actual option. What you have to do is edit the index.php file in your theme folder.

    Look near the top for a line like this:

    <?php if (have_posts()) : ?> or <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    it will certainly have the if (have_posts()) bit.

    Now immediately above that line, add this:

    <?php query_posts('order=ASC'); ?>

    Save the file and load your blog. Make sure you keep a backup of the file in case you make a mistake, or it goes wrong.

    Thread Starter digitaltoast

    (@digitaltoast)

    You’re a genius! Many thanks!

    Genius? Naaah, I just happened to do the same thing a week or two ago!

    this is very useful, indeed, but how can I reorder the posts in only one category? I have a category which is a kind of old diary (I am transcribing and old diary actually), and I would like, in this category only, the posts to be ordered older first
    thank you

    You should create a Category_Templates for displaying that special cat and change the code only in that template.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sort by date? (not reverse)’ is closed to new replies.