Please help me expand my loop
-
The following code allows me to output all posts organized by their category like so:
- Subcat 1
- post 1
- post 2
- Subcat 2
- post 3
- post 4
- post 5
- Subcat 3
- Post 6
- Post 7
- Post 8
I have accomplished this with the following loop:
[code moderated - please follow the forum rules for posting code]
My question is: how can I further nest the loop, so that the subcategories are grouped by their parent category? Like so:
[dito]
ANY help with this would be greatly appreciated! I've been working on this thing for 13 hours straight and I'm starting to feel like I might stroke out at any moment. 8-0
[topic closed as you have decided to start a new topic https://www.ads-software.com/support/topic/nest-category-parents-in-loop?replies=1 - in future, please don't start a new topic for the same problem, but continue with your original topic and add more information there if neccassary]
- The topic ‘Please help me expand my loop’ is closed to new replies.