Possible Duplicate:
Custom Post Type Pagination Doesn't Work in Wordpress 3.4
我更新到wordpress 3.4,之后我的分页中断,显示在第/2页上找不到。我使用自定义帖子类型和自定义查询,例如:
<?php
$type = \'products\';
$paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;
$args=array(
\'post_type\' => $type,
\'post_status\' => \'publish\',
\'paged\' => $paged,
\'caller_get_posts\'=> 1
);
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query($args);
?>
有没有可能解决这个问题?非常感谢。