Retrieve latest post by multiple categories with ID
The problem is that if you pass multiple category to a query, then you’ll retrieve 4 posts ordered by date, but if you last 4 posts are all in one category, you’ll get all 4 posts from same category. You have 2 choices: run 4 different queries, one per category, and retrieve one post per … Read more