Why is max_num_pages empty?
-
When doing something like:
global $wp_query; $total_pages = $wp_query->max_num_pages; var_dump($total_pages); exit;
I get:
int(0)
when there are like 15, 16 posts. so it should go 1 -> 16
I see other posts, that no one has responded to in regardes to this
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Why is max_num_pages empty?’ is closed to new replies.