wp query – WordPress Show 4 posts from 4 specific categories in a slider

Question

I’m trying to show 4 posts from 4 different categories (one from each cat) in one row but no 2 posts from any category can show together. Each category has 5 posts so I need to display them distincly one by one.

on next row there will be 4 posts again exluding the first 4 posts.
To clarify

Row 1 shows: Cat1 -> Post 1, Cat2 -> Post 1, Cat3-> Post 1, Cat4->Post 1

Row 2 shows: Cat1 -> Post 2, Cat2 -> Post 2, Cat3-> Post 2, Cat4->Post 2

And so on.

How can I query posts in this way?

0
Devtype 3 weeks 2022-11-08T09:53:36-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse