I'd like to display on my home page:
- the most recent article
- then the article that was most recent at the same date last year
- then the article that was most recent at the same date in 2008
- and so on until the creation of my blog
my first attempt is this :
$today = getdate();
query_posts('&monthnum=' .$today["mon"] .'&day=' .$today["mday"] );
while (have_posts()) :
the_post();
the_content();
endwhile;
but of course it displays only articles that were written on the very same day in previous years, not one article per year.
Can anyone direct me on how to query_posts, or write a 'posts_where' filter that would do the trick ?
Thank you