How to: Create a Separate Blog Page in WordPress

10th March 2012

If you’re running WordPress solely as a blog then you can show your latest posts on the home page, or link to specific categories/tags from menus. However, if you’re using WordPress as a CMS for your website then you may want the focus to be on your pages, with a separate tab for your blog. To do this, you’ll need to make some changes to your theme*.

First, make a copy of your index.php page and save it as blog.php.

Next, you’ll need to add some code to the top. Replace:


Then find the loop. It should look something like this:

Replace it with this:

You’ll also need to remove this:

And change this:

To this:

Upload the page into your theme directory, and create a new page in WordPress. Call it ‘Blog’ and change the Template from ‘default’ to ‘blog’.

Hit publish and you’re done.

* Should work with most themes. Might not work with all.

Comments are closed

What our customers say:

As a freelance musician and teacher my website is very important for generating business and maintaining good contact with my clients. I have found Jo Cox Design very useful to help maintain elements of my site which are more complex. I like to have control of my site but I often find there are things I cannot achieve on my own. I would certainly recommend Jo as a friendly person who’s easy to work with and who can help you achieve such goals.

Trev Williams