I use this function to exclude from the query posts that are 30 days old,
function filter_where($where = '') {
//posts in the last 30 days
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
return $where;
}
// Register the filtering function
add_filter('posts_where', 'filter_where');
// Perform the query, the filter will be applied automatically
query_posts($query_string);
is it possible to do something like this to exclude posts that have a meta_key=votes and meta_value=0 ?