I have no idea why WordPress is hiding this little gem or if it will be supported in future releases, but as of right now, if you wanted to list all your WordPress posts in alphabetical order you can do this:
wp_get_archives(‘type=alpha’);
And you can do so without banging your head against the wall for an hour like I did.



Wow Thank you SO much I was looking for something like this for hours today I really appreciate the info!!!!! I will link to your page to because this is definitely a “GEM”.
NOTE the only thing is the ‘type=alpha’ quotes have to be changed. Try my HTML encoder to fix it or use a code box.
Thank you!
April 20th, 2009 at 10:18 pm
for some of us that dont know all that much about this, but at the same time see the benefit, it would be nice if you could let us know WHERE to insert this code
else, thx for a great tip
May 14th, 2009 at 9:48 pm
Hey Sam – I guess you could insert it wherever you wanted to
I needed to show all of a clients posts in the sidebar in alphabetical order and that is where I used it.
May 14th, 2009 at 10:05 pm
thx for ur reply – still didnt help much. if you prodived your/a sample (the page name, and where in the page) it would help a lot more.
sorry for the nag, but some of us dont know dick all and are trying to learn
May 14th, 2009 at 10:20 pm
Thanks! Works perfect
Sam, you add this after your wp_get_archives code, usually in the sidebar.php file. HTH
May 28th, 2009 at 5:52 pm
Ok so I just did this for mine to make it a little easier.
Install this plugin
http://wordpress.org/extend/plugins/php-code-widget/
Go to Appearance | Widgets on backend.
Then drag new instance of php widget to sidebar or where ever you want it.
Then copy the code from here:
http://thomasnorberg.com/2009/04/i-found-something-real-nice-from-anther-blogger/
Once again thank you for this and I really appreciate it, I have been using this code since 2009 and still works great!!!
Tom
May 13th, 2011 at 1:29 am