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:

I knew the moment I spoke to Jo that she was the right person to transfer our website over to a content management system.  We were looking for someone who combined a really good technical knowledge of WordPress with a keen eye for design, and Jo provided just that.  She was fast, thorough and incredibly straightforward in her approach and nothing was too much trouble.  The training Jo delivered as part of the job was clear and thorough too.  Thank you, Jo, for a fantastic job!

Tessa Lamb (Business Language Training)