How can i get the posts using get_posts from let’s say post 10 and beyond?So if i have 200 posts i will get from post 10 to post 200(190 posts)?
Because as i see if i use
<?php $args = array(
'numberposts' => -1,
'offset' => 10
); ?>
i just get all the posts
Cheers
It’s strange, you’d have thought if you disable paging and grab all posts, that you could naturally set an offset to, eg.
or
or
This unfortunately doesn’t appear to work(bug / oversight in core i’d guess), however the following works, which i’d agree is not perfect, but will work.
Just use a really high number, and it’ll work around the issue of the
offset
not being respected when paging is disabled.I’ve never tried it berfore, I hope this helps.