• 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)
  • I’m currently having the same issue – did you find a solution?

    I too am having the same problem, I can set the max pages manually and it works but otherwise nothing shows up on my custom posts. I am using a modified Twenty Eleven theme and “previous links” are working with the standard blog.

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.