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:

With:

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.

Jo Cox Design is great value for money. Jo understood the brief completely, while the handover/after-sales were very reassuring. Two things that I would like to highlight: 1) Jo gives you a useful training session in using WP and 2) the mobile version of my website is particularly exceptional. I can highly recommend Jo to any potential client, from a start-up to a fully fledged organization, looking to make an impact on the web.

Stephen Gregson (Language & Culture)