I got this code, <?php wp_get_archives(‘type=alpha’); ?>, from the wp_get_archives codex page, and it works 90% perfectly for what I need. I’ve been through a ton of pages trying to figure this out, but I’d like it to appear with the category listed.
I want it to show the category (such as “A”), then all the posts under it alphabetically.
There are 2 ways we can skin this cat. A single code that does it all, or we can do 26 individual “get archives” codes, where I can specify each category to go and get. Like I type “A”, and then “get all posts for category 6”, and “B”, “get all posts for category 7”, etc.
Simpler the better.
- The topic ‘Creating archives by category’ is closed to new replies.