Here’s a snippet of code to display all WordPress posts alphabetically. Typically, you would list archives using the date they were posted, but there might be a need to list the posts alphabetically. You would normally place this code in your Archives Template page.