sticky posts and pagination issue


Why is this query repeating sticky posts on the second page?

Also, the first page does not contain only sticky posts.

Note: number of sticky posts is 30 and I want the firstpage to show only stick posts

$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
bpy 4 months 0 Answers 20 views 0

Leave an answer