I have 4 post loops on my front page, one for each category in which I want to display only one latest post excerpt of each category. But issue is the Build query is returning all posts of each category. Can you help??
How to make the Post loop return only 1 latest post?
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Shuchigupta14,
If you haven’t already installed it, consider installing the SiteOrigin Widgets Bundle as it’ll greatly improve the usability of the post loops widget.
Regardless, to do this you simply need to set the posts per page to 1. If this is returning a pagination, please try a different template.
Hi Alex,
I’m trying do do this same thing, but with Post Loop in my sidebar. I’ve got it working well except when the user goes to page 2 of the blog listing (e.g., /category/reports/page/2/ ), the Post Loop widget wants to go to “page 2” as well (i.e., it returns the 2nd-most-recent article instead). I’ve tried setting the “Additional” field to “page=1” but this doesn’t seem to help.
Is there an way to get the Post Loop to stick with the most recent post, even when on /page/X/ ?
Thanks,
Colin