[wp-hackers] related post based on the date it was published ?

Michael E. Hancock justmichaelh at gmail.com
Mon May 31 12:26:31 UTC 2010

----- Original Message ----- 
From: "mccormicky" <mccormicky at gmail.com>
>I was just asking if anyone knew of a way to relate posts by  the date they
> were published.

Use a new WP_Query in your loop and use the time parameters 'day', 
'monthnum', and 'year', along with 'category__not_in' argument.  See 
http://codex.wordpress.org/Function_Reference/query_posts for a list of the 
arguments available.

A quick search of the forums found a least one example that has some ideas 
you can use:


More information about the wp-hackers mailing list