I used the following code to remove the sticky posts from the loop used on the index page of my site :
add_action('pagelines_before_theloop', 'exclude_cat');
function exclude_cat(){
if (is_home()) {
query_posts(array("post__not_in" =>get_option("sticky_posts")));
}
}
The problem is that now my pagination is not working anymore...
So I tried using this
add_action('pagelines_before_theloop', 'exclude_cat');
function exclude_cat(){
if (is_home()) {
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'paged' => $page,
'post__not_in' => get_option("sticky_posts")
);
query_posts($args);
}
}
And then, the problem is that my fullwidth posts (using Magazine Layout Mode Only) are not displayed anymore...
Any advices would be much appreciated.
Cheers,
Jk_










