Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wp_query;
- //var_dump($wp_query);exit;
- $count = $GLOBALS['wp_query']->post_count;
- $countPosts = $wp_query->post_count; //当前分页post数
- $maxPages = $wp_query->max_num_pages;//总页面数
- $wp_query->found_posts;//符合当前查询的所有post。
Add Comment
Please, Sign In to add comment