WordPress.org

Support

Support » How-To and Troubleshooting » Can't display all posts on a page, already upped PHP memory

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

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • mubojason
    Member

    @mubojason

    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;

    Pioneer Web Design
    Participant

    @swansonphotos

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't display all posts on a page, already upped PHP memory’ is closed to new replies.