query_posts "posts_per_page" e "offset" conflicting?
-
Hi, I have a problem with this code:
<?php query_posts('category_name=news&posts_per_page=-1&offset=1'); ?>
I am using “posts_per_page=-1” to query all the posts in the category. I would also like to offset by 1, but the result of this query is that all the posts are shown (= including the first one). What can I do?
Thank you.
NM
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘query_posts "posts_per_page" e "offset" conflicting?’ is closed to new replies.