WordPress: Creating a Static Front/Home Page without Plugin
Hello WordPress Developer!
When I was new to wordpress blog devevelopment, I got few projects where the clients wanted a static homepage and a Blog link in the menu. In some other projects, the clients wanted to make the homepage to be semi dynamic; that means in the homepage we will show some wordpress data like three latest posts and other things will be static.
You know when we install WordPress the homepage is by default going to show the latest 10 blog entries. But now the homepage will be static, semi dynamic or anything. We will create a page and link it to default WordPress homepage.
OK. Take a look below of what I mean.
I tried it several ways. But I was not satisfied the available solutions. But luckily I figured out a stable solution. My solution does not need any plugin and it is simple too.
Step One: Create your custom homepage
First of all create your homepage as static, dynamic or whatever you want name it as home.php and remember that when visitors come to your site, they will see this file running as front page or website homepage. Upload it in the theme directory.
Step Two: Create your blog homepage templae
Create your blog homepage template and name it blog.php or anything. For clarity and relevance, let us name it blog.php and upload it in the theme directory.
Here is the code:
{code type=PHP}
/*
Template Name: Blog
*/
// Which page of the blog are we on?
$paged = get_query_var('paged');
query_posts('cat=-0&paged='.$paged);
// make posts print only the first part with a link to rest of the post.
global $more;
$more = 0;
//load index to show blog
load_template(TEMPLATEPATH . '/index.php');
?>
{/code}
Step Three: Create your blog homepage
Now create your blog homepage index and name it as index.php and then upload it in the theme folder.
Here is a sample of blog index.php file code:
{code type=PHP}


Very slick!!! Quite brilliant actually. Plus anytime you need to change it up, you just edit the server side file.
i love your design of the page
Yours sincerely,
donnie
http://donnieproperties.blogspot.com
@ donnie
Dude,
It is a free design.
You can use it too.
You can search google for “download wordpress notepad chaos”.
And you will quickly find it.
By the way,
the name of the theme is: notepad-chaos.
I love this theme too.