Thanks for the reply. You are correct, this is exactly what I needed to do. I found this solution before your post and since I am not really a programmer I hacked my way through using this:
$days = 12 * 86400;
$p_time = get_the_time('U') + 86400;
$back_time = date('Y-m-d',($p_time - $days ));
$post_time = date('Y-m-d',($p_time));
function filter_where($where = '') {
global $back_time, $post_time;
$where .= " AND post_date >= '$back_time' AND post_date < '$post_time'";
return $where;
}
add_filter('posts_where', 'filter_where');
Yours look cleaner, but mine is working so I am leaving it as is for now. Thanks again.
In Firefox, mouse over a category name/link and its ID will appear in the url on the bottom browser bar. Right click and copy url to see id in other browsers.
*edit- in the admin interface, not on the actual site.