Home>Support>How to make the Post loop return only 1 latest post?

How to make the Post loop return only 1 latest post?

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??

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 2 days ago Alex S
    Hi, I Work Here

    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.

  2. 7 years, 11 months ago Colin

    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

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More