Specific query for posts

Jan 13, 2020 11:46 PM 1 Answers
Member Since Jan 2020
Subscribed Subscribe Not subscribe
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
Submit Answer
Please login to submit answer.

1 Answers
Sort By:
Best Answer
Jan 14, 2020

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

View post on imgur.com

Let me know the result.

- Jan 16, 2020 12:34 AM
Flag (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.


Sign in to Reply
Replying as Submit

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets