Title: alphabetical posts
Last modified: August 18, 2016

---

# alphabetical posts

 *  [Jordan Hlebarov](https://wordpress.org/support/users/jdbg/)
 * (@jdbg)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/)
 * Hi,
 * I’ve looked around the forum, as well as in the documentation, but didn’t find
   it, so I’m asking here.
 * How can I make my posts to be sorted alphabetically on my index – i.e. I want
   my posts to sort not by date, but by the name of the title of the post.
 * Thanks in advance.

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/alphabetical-posts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/alphabetical-posts/page/2/?output_format=md)

 *  [asianmack](https://wordpress.org/support/users/asianmack/)
 * (@asianmack)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142150)
 * I am also trying to do the same thing: Sort posts alphabetically in a Category.
   This is easy to do in Movable Type, but I’m eager to replatform my site to WordPress
   and am in need of this functionality. Anyone out there with suggestions?
 *  [lostinymysphereagain](https://wordpress.org/support/users/lostinymysphereagain/)
 * (@lostinymysphereagain)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142151)
 * &sort=post_title&order=ASC’)
 * add that in to something for example:
 * <?php wp_get_archives(‘type=postbypost&sort=post_title&order=ASC’); ?>
 *  [asianmack](https://wordpress.org/support/users/asianmack/)
 * (@asianmack)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142153)
 * lostinmysphereagain, thanks for the reply. That works in listing the titles of
   each post (as links), but it doesn’t actually display the full content of the
   post. Here is what I’m trying to do (as displayed through MT): [http://www.asianmack.com/archives/cat_alternative.html](http://www.asianmack.com/archives/cat_alternative.html)
 * Here is the same version I’m trying to convert over to WordPress:
    [http://www.asianmack.com/wordpress/index.php?cat=2](http://www.asianmack.com/wordpress/index.php?cat=2)
 * As you can see, each post assigned in the particular Category in the MT version
   is displayed in alphabetical order by post title. I’m not versed in PHP, so I
   may be missing something obvious. Again, any tips would be appreciated.
 *  [lostinymysphereagain](https://wordpress.org/support/users/lostinymysphereagain/)
 * (@lostinymysphereagain)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142154)
 * ah i see. I don’t know in that case. sorry.
 *  [asianmack](https://wordpress.org/support/users/asianmack/)
 * (@asianmack)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142155)
 * Thanks for your help regardless! Anyone else out there with any suggestions?
 *  [asianmack](https://wordpress.org/support/users/asianmack/)
 * (@asianmack)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142163)
 * Ok, so for anyone that’s been folowing this post or is interested in sorting 
   posts in alphabetical order rather than by date authored, I have made some headway.
 * Here’s my Category view sorted by default (Date authored):
    [http://www.asianmack.com/wordpress/index.php?cat=2](http://www.asianmack.com/wordpress/index.php?cat=2)
 * Here’s my Category view sorted the way I want it (Alphabetically):
    [http://www.asianmack.com/wordpress/index.php?cat=2&orderby=title&order=asc](http://www.asianmack.com/wordpress/index.php?cat=2&orderby=title&order=asc)
 * Now the problem is, how do I get the links generated in wp_list_cats() to append
   that query string? Anyone out there have any ideas?
 *  [asianmack](https://wordpress.org/support/users/asianmack/)
 * (@asianmack)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142224)
 * I finally figured this out. Anyone who wants to change the sort order of posts
   within a category listing should put the following code before The Loop.
 * <?php if (is_category()) { $posts = query_posts($query_string . ‘&orderby=title&
   order=asc’); } ?>
 *  [kayaker](https://wordpress.org/support/users/kayaker/)
 * (@kayaker)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142226)
 * Thanks! That works great!
 *  [espek](https://wordpress.org/support/users/espek/)
 * (@espek)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142255)
 * Wonderful! That does the trick in a very elegant fashion. Good work!
 *  [kirkir](https://wordpress.org/support/users/kirkir/)
 * (@kirkir)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142259)
 * Could be that I’m having a dense moment but I am having the same issue and I 
   can’t seem to be able to resolve it.
 * I need to be able to list all the posts on my wordpress blog in alphabetical 
   order (regardless of the categories each post is in). Meaning, I need to devise
   a page or some place where visitors to my site can see a list of all the posts
   in the blog alphabetically, like an index.
 * Anyone with any helpful ideas on how to accomplish this? I am still a bit new
   to the php coding aspect of things so please be gentle with that. Thanks in advance!
 *  [bard09](https://wordpress.org/support/users/bard09/)
 * (@bard09)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142261)
 * I just would like to thank you Asianmack for the great bit of code. Was banging
   my head into the wall over this.
 *  [sarahknz](https://wordpress.org/support/users/sarahknz/)
 * (@sarahknz)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142262)
 * Thanks, that’s brilliant. I sent my self 500+ emails tracking the code through
   apply_filters(). I expected to find there was something in wp-settings or similar.
 * My version didn’t like just appending the string so I did a string replace. Phew.
   So happy to have it fixed.
 * thanks, thanks, thanks!
 *  [awsamuel](https://wordpress.org/support/users/awsamuel/)
 * (@awsamuel)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142272)
 * I’m just trying to create an alphabetical index of post titles, but for some 
   reason when I get my list of posts they are in chronological rather than alphabetical
   order even though the lis was generated by this code:
    `<?php wp_get_archives('
   type=postbypost&sort=post_title&order=ASC');  ?>
 * Any thoughts?
 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142273)
 * I have distilled the bulk of this thread into a Codex contribution: [Alphabetizing Posts](http://codex.wordpress.org/Alphabetizing_Posts).
 *  [2shoes](https://wordpress.org/support/users/2shoes/)
 * (@2shoes)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/alphabetical-posts/#post-142279)
 * How would you do this in the Smarty Templating engine?

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/alphabetical-posts/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/alphabetical-posts/page/2/?output_format=md)

The topic ‘alphabetical posts’ is closed to new replies.

## Tags

 * [alphabetize](https://wordpress.org/support/topic-tag/alphabetize/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 30 replies
 * 20 participants
 * Last reply from: [Dgold](https://wordpress.org/support/users/dgold/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/alphabetical-posts/page/2/#post-142317)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
