Need help with category listing!

I would first put all parent categories into one array – then run through that array and get all child categories and their respective posts. So you could basically build a loop ‘around’ your loop – first loop only queries to a depth of 1 (parent cats) and then the second loop looka a lot like yours, … Read more