Archives

function filter_where( $where = ” ) {
$where .= ” AND post_date >= ‘2012-01-01’ AND post_date <= 2013-01-01' "; return where; } add_filter('posts_where', 'filter_where'); query_posts($query_string); while (have_posts()) : the_post(); the_content(); endwhile;