sticky posts and pagination issue

Question

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();
$wp_query->query('paged='.$paged.'&showposts=30&cat=-1,-4491&orderby=desc&page=$page');
0
bpy 4 months 0 Answers 20 views 0

Leave an answer