• Think I’ve done due-diligence.
    New blogger here, but I’ve located ‘appearance’ and ‘editor’ and ‘twentyeleven’ opens with a sidebar of php’s (various). Can’t find one having ASC OR DESC embedded. Don’t want to make assumptions, but that’s where I’ll be able to change the order of posts, I’M ASSUMING.

    Incredibly, all the former threads on this topic I found were YEARS old. Some great coder MUST have embedded a simple way to change this order for idiots like me.

    Please steer me there. Or, if there isn’t, please tell me how to open the operative file where I can, with trembling fingers, change the code (a first for me, for sure).

    Thanks – Drew

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Drew,
    Just before the loop add:

    <?php query_posts($query_string . "&order=ASC"); ?>

    That’s it!

    <?php query_posts($query_string . "&order=ASC"); ?>
    
    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    HTH

    David (if it works mark this topic resolved!)

    Thread Starter ninersixdeltacom

    (@ninersixdeltacom)

    Thanks for the quick help. But,(this is embarrassing)how do I get here: <?php /* Start the Loop */ ?>. If you can answer that, I’m clicking resolved! Drew

    For twenty eleven, first step create a child theme or use a child theme plugin

    Once you have created your child theme, copy index.php from the parent to the child theme, that is where you will find “Start the Loop” code, optional also in category.php, archive.php and search.php

    I have a few posts with twenty eleven child themes, if you are starting to develop these posts have child theme downloads and might be a good starting place, as the functional code is there for you to investigate.

    HTH

    David

    Thread Starter ninersixdeltacom

    (@ninersixdeltacom)

    David, I’m clicking resolved. Haven’t actually created my child theme yet (whatever that is) but, I did find the file index.php in the right column of the editor. When I opened it, I found the loop language. So, I’m guessing I’ll be ok, whenever I can get back to all this, which is not now.

    But, thanks. That’s the simplest I’ve seen, tho still intimidating with code manipulation for a non-coder.

    I’ll close ‘er up now. Best, Drew

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ordering Posts (reverse chronology -latest last)’ is closed to new replies.