• I read here that post ordering on WP can be done in four different ways:
    ascending
    descending
    alphabetical
    category
    I am familiar with how to do it ascending (default) and category, but how is it possible to order posts descending or alphabetical? (I’m particularly interested in descending, as that is chronological.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey.
    I just got this working.
    Add order=ASC to a URL.
    I am using the rewrite rules, so now for month and year pages, by modifying one rewrite rule, I have ascending, chronological posts:
    RewriteRule ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5&order=ASC [QSA]

    Thread Starter pezastic

    (@pezastic)

    I’m sorry. I didn’t follow that. Can you be a bit more specific for a newbie like me? I added what you had to my .htaccess file, but nothing changed in archives. What else must I do? I’m trying to get the posts for an archived month to display from the first day of the month to the last day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Ordering’ is closed to new replies.