My food blog's home page has a row of topic cards, one per category, built with a query loop in episode 13.
But "Kitchen Tips, 3" doesn't tell a visitor much. Three posts about what?
So I wanted each card to list its three newest posts. That takes a loop inside a loop, and it only works once you know which item each loop is showing.
What you'll learn
What a nested query loop is, and when you need one
How to put a posts loop inside a categories loop
Why every card first shows the same three posts
How Term ID in a Taxonomy query connects the inner loop to its card
Which item a dynamic tag reads when loops are nested
Why Term name inside the posts loop comes out empty