Welcome! Version 7.0

Tutorials / FAQs / Documentation

Make sure your connection is secure ("httpS:" instead of just "http:"). Click the logo above for a secure connection.

| Menu ☰ |
× close
Home Products Services Blog Contact

CMSbyCW Demo Back to CMSbyCW Home

How to Increase the Number of Posts Displayed on the Blog Page

How to Increase the Number of Posts Displayed on the Blog Page

Published on: 01/21/2026, 03:01 PM by Software Developer

This is a manual process and you would have to edit the blog.php file, either from your webhost's "File Manager", or via FTP.

1) Open blog.php

Here's the code block to tweak, if you want to increase the number of posts from the default # 5 to 10. 

// Pagination setup
$postsPerPage = 10; // you can set this to 2 for testing, normal set to 10

When the number is changed, the "Previous" and "Next" links would display at the bottom of the blog page. 

2) Save the file. 

3) Check on the front end of your website to check.  The default I set is 5 now, this blog post right now is set to 10, now that I have more than 10 posts.

---------------------------

Developers' Note:  02/08/2026 - Page update - I kept the number for postsPerPage to 10.  So, unless you want to test the pagination, you can keep this file blog.php as is. 

 

Got feedback?

Click HERE and Leave a comment

Share:




Thank you for visiting our website!