Notice: 自 3.1 版本后,WP_Query 的一个调用参数已不被建议使用!请换用 “caller_get_posts”不再被建议使用。请改用“ignore_sticky_posts”。 inD:\wamp\www\wp-includes\functions.php on line 3387
只需要将query_posts()中的caller_get_posts替换为ignore_sticky_posts即可。
例如:query_posts( 'ignore_sticky_posts=1&posts_per_page=10&cat=1' );