8 reputation
4
bio website buildingchampions.com
location
age
visits member for 2 years, 4 months
seen Feb 4 '11 at 18:55
stats profile views 0

May
10
awarded  Popular Question
Feb
4
awarded  Student
Feb
4
accepted How do I correctly get all posts within the last year using the query_posts function?
Feb
4
comment How do I correctly get all posts within the last year using the query_posts function?
Bingo! That worked. A simple scope issue, nice catch. Thanks for the help. I also need to make sure to add the query_posts('posts_per_page=-1') to make it show all the posts instead of using the default posts per page in the admin settings.
Feb
4
comment How do I correctly get all posts within the last year using the query_posts function?
@MikeSchinkel - Please see my edit above for more information: I changed $query_string to posts_per_page=-1 but it still does not return any data.
Feb
4
awarded  Editor
Feb
4
revised How do I correctly get all posts within the last year using the query_posts function?
Added source code for more clarification:; deleted 7 characters in body; added 184 characters in body
Feb
4
comment How do I correctly get all posts within the last year using the query_posts function?
actually I take that back. Both of them only return posts that were posted in the previous year (2010 in this case). What I am wanting is all post within the past year from the current date.
Feb
4
awarded  Scholar
Feb
4
comment How do I correctly get all posts within the last year using the query_posts function?
Thanks for the answer Mike. However doing what you suggest here doesn't return any posts. I also tried formatting it like this: $where .= " AND post_date >= DATE('" . $ayearago . "')"; However this also returned no results.
Feb
4
asked How do I correctly get all posts within the last year using the query_posts function?