How do I limit the number of posts grabbed from a secondary loop?
-
I’ve grabbed posts using an instance of WP_Query.
I have the posts in $my_query. I have used them initially to populate a sidebar.Now I want to reuse the posts in $my_query. I have rewound it.
How do I limit the new loop, so that only one post is produced?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do I limit the number of posts grabbed from a secondary loop?’ is closed to new replies.