$max = $wp_query->max_num_pages; and custom post type in WordPress
-
I’m using custom post types and I need to set a variable containing the max number of pages for:
Normal post type.
The ‘grid’ custom post type.Two problems using the following code:
1) I get 0 as maxPages (should be 3). 2) I’m missing the custom post part.
[Code moderated as per the Forum Rules. Please use the pastebin]
Many thanks for your time and help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$max = $wp_query->max_num_pages; and custom post type in WordPress’ is closed to new replies.