Specific query for posts

Ticket for: Combo Blocks
0
Specific query for posts 1
Steve-a-reno
Jan 13, 2020 11:46 PM 1 Answers
Member Since Jan 2020
Subscribed Subscribe Not subscribe
Flag(0)

I have three categories and want to display only the last 8 posts for each category. How do I add an extra query parameter that will do this?

2 Subscribers
Specific query for posts 1
Specific query for posts 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Specific query for posts 4
PickPlugins
Jan 14, 2020
Flag(0)

Welcome to our forum.

I am not sure if you want to display latest 8 posts via post grid, please set as following
Post query order => Descending

Post query orderby => Date

Posts per page => 8

You don't need to use extra query parameter i hope. please see the screenshot
https://imgur.com/ChYpqqb
Let me know the result.
Regards

Specific query for posts 5
Steve-a-reno
- Jan 16, 2020 12:34 AM
Flag (0)
0

Thanks, but perhaps I didn't explain it well enough.
I have three total categories.
I'd like to display the last 8 from category 1, 8 from category 2, and 8 from category 3.
I currently have the system set up as you did, but the problem is that it will sometimes show 7 from category 1, 8 from category 2, and 9 from category 3.

I'd like it to only ever pick the last 8 posts from each category.

Thanks!

Sign in to Reply
Replying as Submit