On my home page, I’m trying to use the Looper to get all categories that have at least one post, and the loop through to get the most recent N number of posts for each category. So it looks like this:
[Category title]
[Post 1] [Post 2] [Post 3] [Post 4]
[Category title]
[Post 1] [Post 2]
[Category title]
[Post 1]
The outer looper can only get all terms, with no exclusions which doesn’t help me, and the query builder/string brings back posts instead of just the list of category names/ids for me to iterate over. Is there a reference where I can see how to structure this to loop through the categories, getting the most recent N posts for each category to display? Thanks!