WordPress 3.6.1 ignore posts_per_page in homepage?
-
I just found the problem in index.php nor front-page.php when using WP 3.6.1
<?php while ( have_posts() ) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; ?>
This will show all the posts (in my case is hundreds of posts, since I already have that data). This is also slowing down the homepage. The other part (category or taxonomy) seem quite ok.
I check the $WP_Query with var_dump, the value of posts_per_page is correct (10 by default).
Anybody have the similar situation?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WordPress 3.6.1 ignore posts_per_page in homepage?’ is closed to new replies.