This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

9 years ago · Last reply by Colin 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Alex S Staff 9 years, 4 months ago

    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. Colin 9 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread