• I’m seeking to use WordPress for a non-traditional purpose (that is, not a blog), and I need to list the material on the front page alphabetically. Now, it’s no problem to change the code to do this within WordPress, but next time that I upgrade, it’ll just revert to the date-sorting behavior.
    Can anybody tell me the <i>proper</i> way to do this, presumably just by changing index.php? I tried changing:
    wp_get_archives('type=monthly&format=link')
    to:
    wp_get_archives('type=monthly&format=link&orderby=title')
    but that didn’t do any good. I tried, also, setting $orderby=’title’ and making $orderby global, but again with the not so good. Any tips?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Anonymous

    D’oh. Naturally, all I had to do was post, and then I would solve my own problem. Turns out that I was modifying the wrong function input. This worked way better:
    wp_head(‘orderby=date’);

    Thread Starter Anonymous

    I certainly am grateful that I’m posting anonymously, because this is getting embarrassing. I didn’t solve it at all — orderby=date did nothing, since that’s the default behavior. D’oh. ?? So, still with the not knowing how the solve this.

    Thread Starter Anonymous

    Intrepid digital archeologists from the Distant Future(tm) may be pleased to know that I needed only place the following two lines above require(‘./wp-blog-header.php’), at the top of index.php:
    $order = ‘ASC’;
    $orderby = ‘title’;
    And Bob’s your uncle.

    heh. I guess I’m an intrepid digital archeologist, because I was looking for this information. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting Main Listing Alphabetically’ is closed to new replies.