If you have been blogging regularly for more than few months, chances are you have quite a few posts on your blog. That is a good thing. As a blogger you are supposed to blog regularly to provide useful and relevant information to your blog readers. But unless you dictate how your homepage is displayed WordPress will display several posts or excerpts of posts on the homepage. So how do you tell WordPress to display only a certain number of posts on the front page? The answer is simple.
Follow Me Online
Support » Fixing WordPress » Limiting maximum number of posts published per custom post type. I am trying to limit the maximum number of published posts for a custom post type. Lets say I want to limit the total to 50 posts, but not per user role.
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. Try to add some memory in your php. It won't actually solve your problem, as your post amount will grow on, and you'll run into the same issue again. But meanwhile it can give you some time to work on real solution :. In that way you can limit amount of posts you're getting from DB, so you don't need to store all objects in memory at once.
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I have a feed aggregator and I want will have 2 million posts. I am forced to host the content in order for the posts to show in the loop.