Custom WP Posts Per Page

By default, WordPress only has a global setting to control how many posts show up on each page. For small sites, this is fine. But as the multimedia heavy Shures Network website has grown in size, I’ve struggled with how to keep the home pages loading fast but also have all the archived content easily visible to visitors.

I tried using the < ?php query_posts('posts_per_page=X');?> command in my PHP files, but had trouble implementing it correctly. It works to control the posts per page, but caused other things to break.

After doing much soul searching, I finally ran across and installed the “Custom Query String” plugin. It works like a charm. I’m now able to individually control how many posts are shown in each area of the site.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

One Response to “Custom WP Posts Per Page”

Leave a Reply