After taking a look at
global $max_page; and
global $numpages; on category-archive pages (
is_archive() || $GLOBALS['wp_query']->is_archive returning
true), I see the following return values:
What's going on here?
- Where do they come from? After looking into /wp-includes/query.php I found
setup_postdata(), but beeing called as
globalon top and later counts the pages by the array that get's exploded through the
<!-- nextpage -->-array.
$multipageget's set to
$post->post_contentis already an array. Why is this in this case set to
0, as the array indicates that it should be multipaged? Plus: Where could the array come from? post_content saves as string...
- Why do I have
$numpageson archive templates/pages as it is only meant to be set for paged content types?