diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php index 3c439f3c0fb3fe3bf196ca9c60a67932ad851b05..896483d0cd8f524d22210089267cf104e54c8ca9 100644 --- a/view-all-posts-pages.php +++ b/view-all-posts-pages.php @@ -179,7 +179,7 @@ class view_all_posts_pages { */ public function action_the_post( $post ) { if ( $this->is_view_all() ) { - global $pages, $more; + global $pages, $more, $multipage; $post->post_content = str_replace( "\n<!--nextpage-->\n", "\n\n", $post->post_content ); $post->post_content = str_replace( "\n<!--nextpage-->", "\n", $post->post_content ); @@ -189,6 +189,7 @@ class view_all_posts_pages { $pages = array( $post->post_content ); $more = 1; + $multipage = 0; } } @@ -669,4 +670,4 @@ if ( ! function_exists( 'is_view_all' ) ) { return $vapp->is_view_all(); } } -?> \ No newline at end of file +?>