wp_query help needed – wasted hours already
I should’ve asked earlier before wasting so much time…
OK, I’m trying to get 10 posts from the events category INCLUDING THE ONES WITH FUTURE DATE. For some reason the below only shows stuff from the past.
$yf_query = new WP_Query('category_name=events&showposts=10');
I’m ok w/ dirty hacks such as year=2005||year=2006||year=2007 so I’m good for three years but I don’t know the right syntax for this as well.
- The topic ‘wp_query help needed – wasted hours already’ is closed to new replies.