pb with query-posts() refreshing when filtering
-
Hi
I’m using Sampression-lite 1.4.I want to view only articles with personnal filed.
So i use query_posts before the-post() in my index.php file like this :// Exclude Sticky Posts and show remaining normal posts
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts( array(
‘post__not_in’ => get_option( ‘sticky_posts’ ),
‘paged’ => $paged
) );
$args = array(
‘meta_key’ => ‘date_fin’,
‘meta_value’ => date(“dd-mm-yy”),
‘orderby’ => ‘meta_value’,
‘order’ => ‘ASC’,
‘meta_compare’ => ‘>=’,
‘type’ => ‘DATE’
);
query_posts($args);
while (have_posts()) : the_post();It works fine on the first time. but when i click on the “all” filtering bar or others filtering buttons, all articles appear and it seems that my query_posts is forgotten.
Can someone can help me please ?
Thx a lot
- The topic ‘pb with query-posts() refreshing when filtering’ is closed to new replies.