• Is there any way to customize the main page (index.php) so that it displays the most recent posts (already the default) but also displays these in ascending order?

    I.e., assuming I’ve made a post a day for every day of the year up to now (Dec 16), I want the front page of my blog to look like:

    Dec 7 2005
    Dec 8 2005
    Dec 9 2005
    :
    Dec 16 2005

    I am aware of modifications that will reorder all posts, e.g.:

    http://ww.wp.xz.cn/support/topic/16291

    but this results in an index page that begins with the very first post ever, which is NOT what I want.

    Also, I want a modification that only modifies the ‘index’… (I’ve already made modifications for the archives, which was easy to do. If you care — I just manually creating new links, e.g., ?m=200512&order=asc).

    Seems like this would be easy to do, but can’t seem to find any information about it. 🙁

    I’m using the default theme (‘Kubrick’) and WP 1.5. Thanks in advance!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter masahiro

    (@masahiro)

    Anybody? I don’t even need navigation stuff on the bottom for the archives. I just want the index.php page to list the 10 most recent posts, in ascending order.

    this is a little old but i would also be interested in what masahiro wrote…”I just want the index.php page to list the 10 most recent posts, in ascending order.”

    nobody responded before, but anyone know how to do this now?

    A search is a great place to start: http://ww.wp.xz.cn/search/reverse+order?forums=1

    … and …

    Wow. I reread that original post here. I haven’t seen that one solved yet.

    See the Codex doc on query_posts().*

    In particular, you’re looking for info on the showposts and order parameters.

    * If the Codex is down, check the Google cache for that page.

    yeah handy, i guess reading is a better place to start. no worries, i realize you get asked the same questions over and over again…

    kafk, thanks for the link, not sure if i can figure out anythiing or not but i will have a look.

    yeah i dont think that link has the answer, maybe i need to take my own advice and read more carefuly, but i dont see any information about doing the order of posts by the most recently updated (not looking to order posts by the date created).

    <?php query_posts('orderby=modified'); ?>

    I’ll look at updating the Codex doc on query_posts() to provide more complete info on the various arguments and values you can pass.

    Kafk, thank you very much! I will try that out soon and get back about if that works or not. either way, thanks for all your help, I really appreciate it!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘reverse order: most recent posts on index’ is closed to new replies.