Hi there!
Could it be a typo?
In the codex the variable is $max_num_pages: WP_Query codex page
how to get max_num_pages for page-templates with custom loop?
correct the code as suggested by @jcastaneda, and move the code from line 5 to line 48 or after…
i just need last number of posts page,
put from loop to functions.php, then javascript.
Or from loop to javascript
<?php echo $artpost->max_num_pages ?>
<?php echo $artpost->found_posts; ?>
i’m getting 3 and 15, How do use these number in javascript?
-
This reply was modified 9 years, 4 months ago by
apollo789.