<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Hacks &#187; Blog Page</title>
	<atom:link href="http://wphacks.com/tag/blog-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Sat, 19 May 2012 22:29:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To: Tell WordPress To Function Like a CMS</title>
		<link>http://wphacks.com/how-to-creating-both-a-blog-page-and-unique-homepage/</link>
		<comments>http://wphacks.com/how-to-creating-both-a-blog-page-and-unique-homepage/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 11:00:59 +0000</pubDate>
		<dc:creator>Kyle Eslick</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Blog Page]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress Code]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress Homepage]]></category>
		<category><![CDATA[WordPress How-To]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=459</guid>
		<description><![CDATA[So, you have an established WordPress blog, but you&#8217;ve seen the pro bloggers doing it and now you want to turn that blog into a Content Management System (CMS)? Many people probably weren&#8217;t aware of this trick (including many web developers), but one neat feature added with WordPress 2.1 was the ability to have a [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have an established WordPress blog, but you&#8217;ve seen the pro bloggers doing it and now you want to turn that blog into a Content Management System (CMS)? Many people probably weren&#8217;t aware of this trick (including many web developers), but one neat feature added with WordPress 2.1 was the ability to have a different home and blog page without needing to install WordPress on a completely new directory.</p>
<p>In order to accomplish this, you first need to make sure that the page that you want to be your blog&#8217;s homepage is named home.php. This will be the page displayed at the root of your domain.</p>
<p>Next, you&#8217;ll want to create a new file named blog.php and place the following code within the file:</p>
<p><code>&lt;?php<br />
/*<br />
Template Name: Blog<br />
*/<br />
// Which page of the blog are we on?<br />
$paged = get_query_var('paged');<br />
query_posts('cat=-0&amp;paged='.$paged);<br />
// make posts print only the first part with a link to rest of the post.<br />
global $more;<br />
$more = 0;<br />
//load index to show blog<br />
load_template(TEMPLATEPATH . '/index.php');<br />
?&gt;</code></p>
<p>That is all you need for code in that file. Upload it to your theme. This code creates a loop of your index.php file in your theme (commonly used as the single post page) and displays it as a typical blog homepage. Because this page will pull from your index.php file, going forward, any changes you make to your index.php file will update on this page as well.</p>
<p>Now, go into your dashboard and create a new page called Blog. Then select the Blog file you just created in the Page Template drop-down menu in the right sidebar.</p>
<p>Once that is done, the last thing you need to do is go over to your permalink structure page (under Manage) and add /blog/ to your custom permalink structure. This means if you are using an optimal permalink structure, you would want to use a custom structure of /blog/%postname%/. If you are doing this to an established blog, you can easily use the <a href="http://wphacks.com/prevent-duplicate-pages-with-permalink-redirect/">Permalink Redirect plugin</a> to redirect your old permalink structure to the new one.</p>
<p>To see this in action, you can check out my personal blog, <a href="http://kyleeslick.com/">Kyle Eslick dot com</a>. If you have any questions, feel free to post them below and I&#8217;ll do my best to answer them.</p>
<p>Edit: This was written for WordPress 2.1 through WordPress 2.3.3.   It appears that a slight adjustment has been made for WordPress 2.5+.   Readers have confirmed that you can find the information you for a WordPress 2.5+ install in <a href="http://trac.wordpress.org/ticket/6603">this post</a>.   If you are using WordPress 2.5 or newer, please keep this in mind if you try this.</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=211&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-creating-both-a-blog-page-and-unique-homepage/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

