Alphabetic index of posts
-
OK – I’ve done my searching and I’ve read the Codex and like it or not, it looks like I am going to have to wander into PHP code territory, but I know you guys have a reputation for being gentle, right? ??
After a few days of being a dolt, I managed to get an Archives Index page running with Smart Archives. Sweet!
What I *really* want to do is create one single list, perhaps (looking ahead) per Year, but sorted by alphabetic name of the Post Title, and then obviously linking to the post itself.
I followed a rake of links from my searches here, and in the Codex and settled on this bit of code (can’t remember where I found it):
<?php
wp_get_archives('type=postbypost&sort=post_title&order=ASC');
?>This is *nearly* there – I get the single list of posts (presumably per Year, but I only have 2005 entries thus far), but the list is *not* in total alpha order – it seems rather to be still ordered by month, but in no Alpha order I recognise.
Happy to force myself to learn more PHP, so some pointers would be good … or the right answer and some pointers too! :o)
Thanks!
- The topic ‘Alphabetic index of posts’ is closed to new replies.