wp_query returns wrong number of max pages
-
Hi guys,
I’m using wp_query to get a list of custom posts of a single taxonomy.
While I get the correct posts back, the $wp_query->max_num_pages value is incorrect (it returns the total number of pages based on the custom post type – without the taxonomy filter).You can see the code I’m using here : https://pastebin.com/NBDDma2q (nothing special really). Can anyone reproduce the problem ? Not sure if I’m doing something wrong or if this is an actual bug.
Thanks,
gNesher
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_query returns wrong number of max pages’ is closed to new replies.