Home>Support>Limit Posts in Build Post Query

Limit Posts in Build Post Query

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 9 months ago Greg Priday
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More