Can't display all posts on a page, already upped PHP memory (4 posts)

  1. devers
    Posted 3 years ago #

    I'm having a problem similar to this (actually, seemingly identical) except that I am only trying to display 200 posts. More posts exist, but WordPress seems to fail to get any more than about 150. This is after I increased PHP's memory limit to 256mb. Previously, it could only get about 60 pages using 32mb of memory. This seems like a lot of memory to get relatively few posts. Could there be another factor that is limiting the WP_Query results?

  2. mubojason
    Posted 3 years ago #

    i get the same problem, and find out to Solve it:

    #line 23:


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

  3. Pioneer Web Design
    Posted 3 years ago #

    It could also be the number of queries requested, many hosts limit it.

    Add this to the end of footer.php of your theme to get time and # of requests:

    <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->

    Then look at source code (scroll to bottom).

    So many posts per page can cause server performance issues.

  4. lenny247
    Posted 3 years ago #

    Hi, i was having the same problem and i used a php function set_time_limit(8000); and i set it very high and it worked.

Topic Closed

This topic has been closed to new replies.

About this Topic