DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Daily archives: Thursday, December 10, 2009

Two Ways to Limit the Number of Posts without a Plugin

Posted by on

Let’s say your blog is set to display ten posts per page, as specified via the WordPress Admin under Settings > Reading. Once set, ten posts will appear on your home page, archive pages, search results, and so on. In other words, if it isn’t a single-view page or an actual “page” page, you’re gonna get ten posts per page. It’s a global setting.

Code is poetry