<?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>RLM &#187; Pages</title>
	<atom:link href="http://www.rlmseo.com/blog/category/wordpress/pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rlmseo.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 03:37:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using a Static Homepage for Your WordPress Blog</title>
		<link>http://www.rlmseo.com/blog/wordpress-static-homepage/</link>
		<comments>http://www.rlmseo.com/blog/wordpress-static-homepage/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:12:02 +0000</pubDate>
		<dc:creator>jcrens8392</dc:creator>
				<category><![CDATA[Pages]]></category>
		<category><![CDATA[front page]]></category>
		<category><![CDATA[frontpage]]></category>
		<category><![CDATA[home page]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.rlmseo.com/?p=470</guid>
		<description><![CDATA[In this tutorial I take you through the fairly simple process of setting a static homepage for your WordPress site and moving the blog page to another location, like /blog/.]]></description>
			<content:encoded><![CDATA[<p>WordPress is a great platform for displaying blog-style content that continuously rotates on the front page, with new content pushing older content down and, eventually, off to another (rarely, if ever seen) page. This is great for bloggers, but not so good for those who don&#8217;t want a blog as their homepage, which happens to be just about every single one of my clients. In fact, most of my clients want an entire site in addition to the blog run through WordPress, which is a whole other tutorial entirely.</p>
<p>What we&#8217;re going to cover here is setting a static homepage and moving the blog page to a directory like /blog/.</p>
<p>This task isn&#8217;t too difficult, although, depending on how you set it up, it can be confusing as hell, so I&#8217;ll walk you through the simple way of getting it done. So let&#8217;s git &#8216;er done&#8230;Yeeehaw!</p>
<h2>Setting up the Static Homepage</h2>
<p><em>*All file references are to your theme files</em></p>
<ol>
<li>First, back up your theme directory so you can roll back any changes if something goes awry.</li>
<li>Next, create a new file in your theme directory called homepage.php</li>
<li>Then open page.php and copy everything in it and paste it in the newly created homepage.php</li>
<li>At the very top of the newly created homepage.php file, add the following code:
<pre>&lt;?php
/*
Template Name: Homepage
*/
?&gt;</pre>
<div id="attachment_1278" class="wp-caption aligncenter" style="width: 369px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/wordpress-static-front-page-template.png" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/wordpress-static-front-page-template.png" alt="WordPress Static Homepage Template Screenshot" title="WordPress Static Homepage Template" width="359" height="219" class="size-full wp-image-1278" /></a><p class="wp-caption-text">WordPress Static Homepage Template</p></div></li>
<li>Save homepage.php</li>
<li>Next, log in to WordPress and create a new page. Name it whatever you want&#8230;I named mine Homepage.
<div id="attachment_1281" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/creating-the-static-homepage1.jpg" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/creating-the-static-homepage1.jpg" alt="Creating the static front page" title="Creating the static front page" width="450" height="290" class="size-full wp-image-1281" /></a><p class="wp-caption-text">Creating the static front page</p></div></li>
<li>While creating the page, change it&#8217;s <em><strong>Page Template</strong></em>to &#8220;Homepage.&#8221;
<div id="attachment_1283" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/selecting-home-page-template.png" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/selecting-home-page-template.png" alt="Selecting the home page template" title="Selecting a page template in WordPress" width="450" height="256" class="size-full wp-image-1283" /></a><p class="wp-caption-text">Selecting the home page template</p></div></li>
<li>Finish creating the page just like you would any other and then publish it.</li>
<li>Next, navigate to <strong>Settings &gt; Reading </strong>in the WordPress admin.</li>
<li>Now, under the <strong>Front Page Displays</strong>section, mark &#8220;A static page&#8221;, and select &#8220;Homepage&#8221; from the first dropdown. Leave the second dropdown alone for now.
<div id="attachment_1285" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/setting-static-homepage-settings-wordpress.jpg" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/setting-static-homepage-settings-wordpress.jpg" alt="Setting the static front page settings" title="Setting the static front page settings in WordPress" width="450" height="243" class="size-full wp-image-1285" /></a><p class="wp-caption-text">Setting the static front page settings</p></div></li>
<li>Click save changes and visit your blog homepage. You should see the newly created page as the homepage instead of the standard post loop.</li>
</ol>
<p>So now we&#8217;ve got a static homepage, but our blog page is gone&#8230;that&#8217;s ok, we&#8217;re going to turn that back on and place it at the url, http://www.yourdomain.com/blog/.</p>
<p>Before we get started, make sure you have the pretty permalinks enabled, otherwise, your blog page won&#8217;t be at /blog/, but /?p=43 or something like that.</p>
<h2>Setting up the New Blog Page</h2>
<ol>
<li>This is pretty simple. First, in the WordPress admin, create a new page and name it &#8220;Blog.&#8221; Don&#8217;t add any content or anything&#8230;all you really need is a title and to make sure that the page slug is &#8220;blog.&#8221;
<div id="attachment_1286" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/new-wordpress-blog-page.jpg" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/new-wordpress-blog-page.jpg" alt="Creating the blog page" title="Creating the blog page in WordPress" width="450" height="262" class="size-full wp-image-1286" /></a><p class="wp-caption-text">Creating the blog page</p></div></li>
<li>Publish that new page.</li>
<li>Go back to <strong>Settings &gt; Reading</strong> in the WordPress admin and under the <strong>Front Page Displays </strong>section, in the second dropdown labeled &#8220;Posts page,&#8221; select &#8220;Blog.&#8221;
<div id="attachment_1287" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.rlmseo.com/wp-content/uploads/2009/05/setting-the-posts-page-in-wordpress.jpg" rel="wp-prettyPhoto[470]"><img src="http://www.rlmseo.com/wp-content/uploads/2009/05/setting-the-posts-page-in-wordpress.jpg" alt="Setting the blog page settings" title="Setting the posts page in WordPress" width="450" height="262" class="size-full wp-image-1287" /></a><p class="wp-caption-text">Setting the blog page settings</p></div></li>
<li>Save changes.</li>
<li>Delete cache if you&#8217;re using a caching plugin.</li>
<li>Visit your homepage and make sure it&#8217;s still there.</li>
<li>Now visit http://www.yourdomain.com/blog/ and check out the blog page.</li>
</ol>
<h2>Some Things to Remember</h2>
<p>When you go into <strong>Settings &gt; Reading</strong> and set the &#8220;Blog page&#8221; to a particular page on your blog, WordPress automatically pulls the index.php file and uses that to display the content on that page, which is why we didn&#8217;t have to create a new template or anything for the blog page like we had to for the homepage.</p>
<p>Also, you can name those templates and page files whatever you want (I&#8217;d avoid home.php for the homepage file though as this will interfere with WP v2.1 and earlier). Just remember the name of the page template that you added to the top of the homepage.php file so you can select that as the page template when creating the homepage in the WordPress admin.</p>
<p>Also remember the actual titles you gave the home and blog pages when creating them in the WordPress admin so you can select the proper pages in the <strong>Settings &gt; Reading</strong> section.</p>
<p>And finally, whatever page slug you give your blog page when creating it in the WordPress admin is the URL by which you&#8217;ll access it (assuming you&#8217;re using pretty permalinks). So, if you end up giving your blog page a page slug of &#8220;blog-home&#8221;, you&#8217;ll have to access your blog page at the url: http://www.yourdomain.com/blog-home/.</p>
<p>That should do it. Happy blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlmseo.com/blog/wordpress-static-homepage/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Using the &#8220;More&#8221; Tag on WordPress Pages</title>
		<link>http://www.rlmseo.com/blog/read-more-link-on-wordpress-pages/</link>
		<comments>http://www.rlmseo.com/blog/read-more-link-on-wordpress-pages/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 20:53:11 +0000</pubDate>
		<dc:creator>jcrens8392</dc:creator>
				<category><![CDATA[Pages]]></category>
		<category><![CDATA["more" tag]]></category>
		<category><![CDATA[read more]]></category>

		<guid isPermaLink="false">http://www.rlmseo.com/?p=215</guid>
		<description><![CDATA[If you try to use the "more" tag on any page other than your blog's homepage, you've probably noticed that it doesn't work. In this tutorial, I show you a really simple way to enable the use of the "more" tag on other pages in your WordPress blog.]]></description>
			<content:encoded><![CDATA[<p>Some of you may notice I&#8217;ve recently added a &#8220;blog&#8221; section to this site in addition to the existing &#8220;tutorials&#8221; section. Even though I use excerpts for my summaries in the tutorials section, I wanted to use the &#8220;more&#8221; tag in the blog section to accomplish the standard blog setup with the beginning of a post on the homepage and the rest on the single post page, with a &#8220;Read more&#8221; link allowing the reader to click through to the latter.</p>
<h2>Two Blog Homepages</h2>
<p>There&#8217;s a small problem with having what essentially amounts to two blog homepages&#8230;one for the tutorials section and another for the blog section. The problem is that I have to tell WordPress to use one as the actual blog homepage, which, in my case, I&#8217;ve already set up to be the tutorials page. By default, WordPress won&#8217;t let you use the &#8220;more&#8221; tag to clip posts on any pages other than the specified homepage. So, I did a little searching and found a really simple fix for this problem over at <a href="http://weblogtoolscollection.com/archives/2007/07/09/the-more-tag-on-a-wordpress-page/">Weblog Tools Collection</a>.</p>
<h2>The Solution</h2>
<p>The solution is incredibly simple, although, if you didn&#8217;t do the exact same Google search I did you may have trouble finding it, so here it is.</p>
<p>All you have to do is add the following line just before the code to display your post content:</p>
<pre>&lt;?php global $more; $more = FALSE; ?&gt;</pre>
<p>So you end up with something like this on the page where you want your posts to be cut off (the &#8220;Blog&#8221; page in my case):</p>
<pre>&lt;?php global $more; $more = FALSE; ?&gt;
&lt;?php the_content(&#039;Read more &amp;rarr;&#039;); ?&gt;</pre>
<h2>Why It Works</h2>
<p>I haven&#8217;t looked into the specific details on why this works, but it appears that WordPress uses the global variable &#8220;$more&#8221; as a flag to tell it whether or not the &#8220;more&#8221; tag should function on a given page. By default it&#8217;s probably set for whatever page you specify as your blog&#8217;s homepage, but not the rest. The code above sets the global variable &#8220;$more&#8221; equal to FALSE before displaying the post content so that WordPress respects the &#8220;more&#8221; tag on that page.</p>
<h2>Ignoring the &#8220;More&#8221; Tag Once Again</h2>
<p>Incidentally, you can set $more = TRUE immediately after displaying your content and WordPress will ignore the &#8220;more&#8221; tag in any posts following that one&#8230;like so:</p>
<pre>&lt;?php global $more; $more = FALSE; ?&gt;
&lt;?php the_content(&#039;Read more &amp;rarr;&#039;); ?&gt;
&lt;?php $more = TRUE; ?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rlmseo.com/blog/read-more-link-on-wordpress-pages/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

