With the release of WordPress 2.1 it is now possible to easily create a static homepage. Previously, it was possible through plugins and hacks to create a static home page on your WordPress site but it wasn’t easy or reliable because it worked outside of the main WordPress loop. One of the major improvements with the 2.1 release is the ability to create a static homepage within the WordPress framework.
The only issue with the new WordPress release is the features have out paced the documentation. Even though the WordPress CMS supports a static home page it was pretty difficult to figure how to do it. Here are the few steps necessary to set up your WordPress 2.1 site with a static home page.
1) Create a new template to be used for the home page. The easiest way to do this is to save the current index.php template as a new file such as home_page_template.php. Then change the top of the page to identify it as a new template, for example:
/*
Template Name: Home Page Template
*/
2) Change your template as necessary to become your new static home page. The first thing you will notice is because this is not the main template you will not have access to the WordPress Post Loop. This means when you fire up your home page it will just have the content for that page and not all of the other. I go over how to access the loop outside of the main template in another post if you need to do so.

3) In your WordPress Admin section select Write Page from the Write menu. Create a new page to house your posts. You can leave the content of this page blank as it will be filled with your posts. Save this page with a descriptive name, something like Blog, works well.

4) In your WordPress Admin section select Write Page from the Write menu again. Now you will create a new page to be your static home page. Again you can leave this content blank unless you need the content as part of your home page and you are using the content in your template. Select “Home Page Template” from the Template option menu. This tells WordPress to use the new template to display your information and gives you the ability to have a unique design and content for your home page.

5) Now for the version 2.1 magic. In your WordPress Admin section select Reading from the Options menu. The top selection on this page is Front Page. Under the Front Page Displays: section, select “A static page”. Next select the Home Page you created in step 4 for the Home Page dropdown and the Blog page you created in step 3 for the Posts page. Click the Update Options button and thats it you now have a static home page for your WordPress 2.1 site.

With the latest release of WordPress version 2.1 it is easy to set a static homepage for your site. The difficulty with a static home page is finding out how to configure the settings and then making a template that looks like you want it to. If you are having problems getting your homepage to look like you want it to check out some of my other posts for help.
Technorati Tags: WordPress, Static Home Page
28 Responses to “WordPress 2.1 Static Homepage”
March 8th, 2007 at 2:48 am
This is just what I was looking for, however being fairly new to WordPress you lost me at, “2) Change your template as necessary to become your new static home page.”
I do know what The Loop is at least.
I am also using K2. I wonder if that will change these instructions for me at all?
Is there any way you might be able to explain the changing of the home page template a little bit more?
March 10th, 2007 at 5:39 pm
Hi Richard,
Your screenshots above have one element on the page that I do not see and that is the “Page Template” option. Where does that come from?
Regards,
Mike
March 12th, 2007 at 9:41 am
Mike, The “Page Teplate” option is only available when you add or edit a Page and not on the Post admin section. This is a bit confusing in WordPress but there is a difference between Pages and Posts. Posts are your blog posts such as this one and use the loop while Pages can have static and other content, such as your About Us page.
April 3rd, 2007 at 9:06 am
Hi Richard,
First–thank you for writing this up. I’ve been trying to figure out how to do this for a couple of days.
In your post you mention that there is a way to access the loop from the new static homepage. I’ve looked over the posts on your site that are categorized as technology but didn’t find one about that. I’d like to put two posts on my home page–the most recent posts from each of two categories. I expect that I’ll need to access the loop to do this–can you point me toward a resource that can explain how to get the loop on the static page?
In any case, thanks again for taking the time to write up an explanation of the static homepage feature.
Best,
Steve
April 3rd, 2007 at 11:00 am
Wanted to mention that I just found and am experimenting with Scott Rielly’s Customizable Post Listings plug-in, and so far it looks like that may add the functionality I’m looking for to the static homepage–so that, combined with this article, may do the trick.
(http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/)
Best,
Steve
April 14th, 2007 at 10:44 am
[...] Sipe has a great write up on how to do this. If you would like to manage your entire site, both blog and non-blog, from [...]
April 24th, 2007 at 4:26 pm
I’m trying to do this on my own page. The problem I am having, is on my static page I want to display my most recent entry. By default the page template has the loop but it pulls the static page title as the post title, and then whatever I’ve entered into admin as the content, as opposed to an actual post.
Any advice you could give would be most appreciated.
April 24th, 2007 at 9:11 pm
[...] is how to access the main WordPress “Loop” in a static homepage. In my previous post, WordPress 2.1 static homepage , I mentioned the need to go about this differently and after multiple requests I decided to post a [...]
April 24th, 2007 at 9:37 pm
I have finally followed up this post with one that describes how to get to your posts when you have a static homepage configured in WordPress.
Check it out here: http://www.richandstephsipe.com/wordpress/2007/04/24/wordpress-loop-in-a-static-homepage/
April 28th, 2007 at 4:42 am
OK, couple clarity please… which “index.php” do I copy… from within the (1) themes/name( theme) folder (2) from within the wp-contents folder, or (3)from from within /root ? (there are these 3 in my structure). When I copied the theme/index.php back to my c:/ then renamed as said (home_temp.php) and named (text editor), loaded to theme folder… my page/login… did not show, could not log-in??
I removed the file from folder, then went to browser, tried login and it work! obvious placing a “new” php file by ftp into the directory, was the problem. obviously I can’t get to next steps past no1. Any suggestions?… Great tute by the way… pity about my stuckness.
April 30th, 2007 at 8:48 am
David: You need to copy the index.php file from your theme folder, rename it, change the header template designation, and then place it back into the theme folder.
Let me know if that works for you.
Rich
May 14th, 2007 at 9:04 am
Hi -
if I am creating a new site with nothing on it – and I want it to entirely *look* like my chosen theme, but I want the home page and a couple more static pages as well as a blog, do i install the blog in the root? It is all brand new, so will be the latest wordpress edition. do you offer a service to help get it installed as I want?
May 19th, 2007 at 12:51 pm
Hello,
Thanks for clarifying things. With the new 2.1 feature for front page, it is indeed very confusing when searching the web, as you get old hacks mixed with some new things. Your page helps a lot. Unfortunately it doesn’t work for me.
I followed your procedure but wordpress then displays the same content in my front page and my blog page, meaning the posts of the blog.
I’ve been trying to figure out whats wrong for quite a few hours now, but i’m helpless! If you or someone else could give me a hand to find out the culprit, i would be most grateful!
June 8th, 2007 at 8:00 am
[...] et les explications du codex wordpress sont assez simplifiées. Jusqu’à ce que je tombe sur cet article. Je vais donc vous décrire dans le détail la méthode expliqué dans cet [...]
September 12th, 2007 at 10:30 am
[...] hardly any documentation on this new feature although I found this interesting article on how to create a static homepage on Richard and Stephanie Sipe’s blog and, while it shows you how to can select Static pages for the Front Page (home) and Posts Page, [...]
October 7th, 2007 at 6:17 pm
Hi, followed all your steps and it worked out well, thanks. But I am stuck on now having 2 home pages. Per the second to last question here, do you know how I can get this done?
http://wordpress.org/support/topic/103500?replies=14#post-628183
Thanks,
Michael
November 15th, 2007 at 5:47 pm
Thank you for writing this up. It worked for me and I’ve linked to this post from my own blog.
January 29th, 2008 at 3:17 pm
Say, I have version 2.2.1 of Wordpress, yet the “Page Template” selection isn’t on there. What’s wrong?
January 31st, 2008 at 9:05 pm
@john
that happened to me too.
you have to check your template dir, there should be php file with the content:
then the “Page Template” selection will appear.
March 17th, 2008 at 1:52 am
Well I started following Richards suggestion, only to find that the current version 2.3.3 does not seem to have the box to set the “Page Template” which I guess that 2.2 did have.
So … I am stuck again
How am I supposed to do this in vers 2.3.3 ?
My siye is at : http://www.fethiye-guide.com
where you will see the link to the blog.
What I want to do is use the same theme from the blog on my website home (static) page
Any help much appreciated.
April 15th, 2008 at 6:59 am
Hi,
Thanks for the explantion. My question is I have set every thing up as you said, but have 2 “Home” Links on the top of my site. Is there any way to hide one of them?
August 6th, 2008 at 12:19 am
[...] but it’s been on my to-do list for a long time. I was just about to give up and finally found this post which explained a way that worked for [...]
August 12th, 2008 at 2:16 pm
[...] a tutorial that may help you. __________________ – Rick Beckman’s Better Blogging Basics – A new blog for beginner WordPress [...]
August 25th, 2008 at 4:22 pm
Hello,I am trying to create a static home page as you described but the top nav is not coming out properly. I end up with two “Home” tabs. Is the ability to do this dependent on the Theme you are using? Thanks! Michael
September 2nd, 2008 at 3:27 pm
Michael – I think you can just delete the “old” Home page in your Wordpress Admin site because you have created a new static wordpress home page to replace that one. Your theme is just outputting all the pages it finds in the DB and there are two “Home” pages right now I am guessing.
November 9th, 2008 at 3:37 am
Same problem as Michael. I followed all the steps here but end up with 2 home pages.
And when I click on “blog” it sellects automaticaly the old “home page” with it.
So I end up with 2 simultaneous selection for the same page….
Any idea of how to delete the old home page ?
Thanks a lot!!!
February 28th, 2007 at 12:24 am
[...] WordPress 2.1 Static Homepage (tags: wordpress wp static homepage) [...]