There are situations where one page contains multiple post queries(function query_posts) for different conditions(parent categories, tags, etc.), and some of post queries have custom filters(added by add_filter function). Next query_posts call will keep this custom filters, and that could make totaly unespected posts results. Before execute next post query, please add this kind of code to remove previous custom filter, i.e.:
if (has_filter('posts_where', 'filter_date_range_future')) remove_filter( 'posts_where', 'filter_date_range_future');
'filter_date_range_future' is example function:
function filter_date_range_future($where = '') {
$where .= " AND post_date >= '" . date('Y-m-d') . "'";
return $where;
}
Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is fantastic, let alone the content!. Thanks For Your article about » Remove custom filters in page with multiple query_posts btb4net.com .
Thanks for sharing excellent informations. Your site is so cool. I’m impressed by the details that you