Wordpress Blog Page with a “Static” Wordpress Site

I just realized that I did not have a “blog” tab in my navigation. Silly oversight, so I added it. I also remember searching long and hard for the code to put in a blog page if I wanted to use my Wordpress site as a “static site” with a homepage other than a traditional blog layout. Possibly a simple thing for folks who are used to coding the night away, but not for us light coders.

I am documenting my process here so I will know where to find it in the future.

  • Create a file in notebook (or your favorite text editor) called “blog.php” and upload it to your Wordpress theme folder. It should contain the this text:
  • Create a page in Wordpress, call it “Blog”, “News”, whatever you want. Do not put any text in the text editor.
  • Select “Blog” in the Page Template drop-down options.
  • Hit save and you should be good to go.

I discovered that you cannot do this if you have a free blog on yoursite.wordpress.com. It only works if you have your blog hosted somewhere.

Tags: , ,

5 Responses to “Wordpress Blog Page with a “Static” Wordpress Site”

  1. Charlie says:

    Just in case someone else sees this and doesn’t know — you need to add <?php to the beginning.

    Thanks for posting this though, it was driving me crazy, too!

  2. admin says:

    Thanks for catching that, I had the code copied in correctly but my editor cut it. I modified the post to have a link to the text file instead.

  3. malakhi says:

    howdy… the text file you provided in this entry doesn’t appear to be there anymore? :(

  4. admin says:

    It is there now, sorry about that, I moved my site and missed the link! In WP now all you have to do it go to:
    Settings=>Reading=> an select the page you want for your home and the page you want for your posts. Easy!

Leave a Reply

You must be logged in to post a comment.