This code snippet will show you how to output a list of your WordPress posts Alphabetically. If you’d like an example of this in use, you can have a look at my tutorials section.
You will need to include the following snippet of code onto the top part of your WordPress loop.
<?php query_posts('&orderby=title&order=asc'); ?>
This code tells WordPress to order the posts according to the title, in ascending order. You can chance
des to get the posts to list in descending order.
If you would look all the posts in a certain category to appear in ascending order, then you can use the
showposts=-1 options inside the WordPress query. For example, the following code snippet will get all the posts in category 4 to output in alphabetical order:
<?php query_posts('cat=4&showposts=-1&orderby=title&order=asc'); ?>
If you would like to know more about different ways to include or exclude singular or multiple categories, then read this tutorial explaining how to use it.
If you have any questions on how this works, please feel free to leave a comment below and I’ll answer it as soon as possible.