Tuesday, August 08, 2006
Using Wordpress as a CMS
I wanted to define a custom home page on a Wordpress site, then link to the actual blog itself. A bit of a mission, but this helped:
http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page
I created a page called "Home" which had my home info on it.
http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page
I created a page called "Home" which had my home info on it.
Using the Static Front Page Plugin, it is possible to set any Page as the "front page" of your site. The plugin modifies the home page query and sticks the Page with a Page slug of "home" to the front page.I then created blog.php in my theme folder, with the following content:
<?php /* Template Name: Blog */ ?> <?php query_posts('cat=-0'); //gets all posts load_template( TEMPLATEPATH . '/index.php'); //loads index ?>Now, log into Wordpress and create a page named "Blog" with template "blog". Also updated my permalinks to begin with "blog" like so:
"/blog/%year%/%monthnum%/%postname%/".Wordpress is a bit more powerful than I thought!
Technorati Tags: customised, front page, wordpress
