Support » Fixing WordPress » Posts_per_page= if more than 150 is dosen't work

  • i will use code like to display all posts in one page,
    <?php query_posts(“posts_per_page=-1”); ?>
    but it doesn’t work, display blank of that part;

    if i change the number like
    <?php query_posts(“posts_per_page=120”); ?>

    it works right to display 120 posts;

    and if the number more than 150, like
    <?php query_posts(“posts_per_page=180”); ?>

    it doesn’t work…

    is something wrong?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You are then likely creating a page that is too large (in bytes), I would think you would have server issues when many visitors try to load such large pages at same time. 10 posts per page is good if posts are text and less if heavy with images – then add a paging plugin if pagination is not included with theme.

    THANKS for replay;
    but i get the same problem, and find out to Solve it:

    ~/wp-includes/default-constants.php
    #line 23:

    ‘WP_MEMORY_LIMIT’,’32M’

    change the number more than you need,
    like 64M or more;

    And the pages output are not large?

    it output fast;
    my site now have about 300posts,
    output just less 5sec;

    i changed the MemoryLimit 32to 64M now;

    This problem has been solved

    How long does it take your customers on DSL (or less) to load these pages? That is very many posts for one page.

    i just create a page for update Custom Meta and some date for all post;

    that page just for admin or manager, not for any user;

    Well that helps clarify for others that so many posts per page is not recommended as it can cause high server loads.

    yes i understand

    now am facing same problem.i changed

    ~/wp-includes/default-constants.php
    #line 23:

    ‘WP_MEMORY_LIMIT’,’64M’.It doesnt show all post

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Posts_per_page= if more than 150 is dosen't work’ is closed to new replies.