Im creating a WP for a custom type post in a page template:
<?
global $paged;
global $notquery;
$temp = $notquery;
$notquery = null;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'noticias',
'paged' => $paged,
'posts_per_page' => 1
);
$notquery = new WP_Query($args);
while ( $notquery->have_posts() ) :
$notquery->the_post();
global $post;
?>
And it just dont works properly. I can access page 2 with /page/2/. So, paged seems to work. It prints out the wp-paginate navigation div, but nothing inside it.
<div class="navigation"></div>
Whats the problem guys? thanks!