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.

Limit Posts in Build Post Query

10 years ago · Last reply by Greg Priday 10 years ago

Hello there.

I am trying to build a sidebar widget in the POST LOOP widget that displays the 3 latest posts in a custom taxonomy.

All works fine, except that I cannot limit the display – it lists, or paginates, all 60 posts in the taxonomy.

I have tried “limit=3” (both with and without quotes) in the “Additional” field but it makes no difference

Cheers

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Greg Priday Staff 10 years, 2 months ago

    Greetings Ian

    As far as I can see, the get_posts syntax doesn’t allow for limiting the number of posts. Unfortunately we’re only able to support what get_posts supports.

    https://codex.wordpress.org/Template_Tags/get_posts

    It is a little odd that there isn’t some sort of limit argument though. Maybe this will be added in the future.

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