How can I display only one post from each category?
I’ve started to build a blog on the Shaken Grid-theme, but I can’t figure out how to customize the first page the way I want it.
I only want to show the latest post from each category on the index page, for all of the categories. And I want to show them in chronological order, so that the category containing the most recent post will appear first on the first page.
Here’s the code that should print out the posts on the index page.
- The topic ‘How can I display only one post from each category?’ is closed to new replies.