<?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>Scott Nelle.com &#187; WordPress</title>
	<atom:link href="http://www.ScottNelle.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ScottNelle.com</link>
	<description>Scott Nellé&#039;s Personal Site</description>
	<lastBuildDate>Tue, 08 Nov 2011 04:02:26 +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>Create a Static Splash Page in WordPress</title>
		<link>http://www.ScottNelle.com/252/create-a-static-splash-page-in-wordpress/</link>
		<comments>http://www.ScottNelle.com/252/create-a-static-splash-page-in-wordpress/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 01:55:44 +0000</pubDate>
		<dc:creator>Scott Nelle</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ScottNelle.com/?p=252</guid>
		<description><![CDATA[I know, splash pages are wrong, evil, and will probably bring about the downfall of society. But what if you need one anyway? Say, for example, you are preparing to launch a site based on wordpress but while you&#8217;re still &#8230; <a href="http://www.ScottNelle.com/252/create-a-static-splash-page-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I know, splash pages are wrong, evil, and will probably bring about the downfall of society. But what if you need one anyway? Say, for example, you are preparing to launch a site based on wordpress but while you&#8217;re still putting it all together you don&#8217;t want visitors poking around. How can you create a static splash page to tell people that your site is coming soon (whatever that means?)</p>
<p>I found myself in just that situation recently. I looked around for a plugin to let me replace my index with a simple html document for a little while. I may write one yet, but for now a beautifully simple solution is doing the trick. Here&#8217;s what to do:</p>
<ul>
<li>Create a blank file in your theme directory and call it something like <code>splash.php</code>.</li>
<li>Make it a page template by pasting in the following:
<pre>&lt;?php
/*
Template Name: Splash Page
*/
?&gt;
</pre>
</li>
<li>Write your static HTML. If you need to link to images or stylesheets, I suggest putting them in a subdirectory of your theme called something like <code>splash</code>. You can then reference them in your HTML using a bit of code like <code>&lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/splash/image.jpg" alt="" /&gt;</code>. Notice the php which finds your theme directory for you so your theme remains portable.</li>
<li><a href="http://www.scottnelle.com/wp-content/uploads/2011/03/page-attributes.png"><img class="alignright size-full wp-image-254" title="page-attributes" src="http://www.scottnelle.com/wp-content/uploads/2011/03/page-attributes.png" alt="" width="295" height="250" /></a>Create a blank page and set it to use the custom page template you&#8217;ve created. You&#8217;ll find it under the Page Attributes menu. As of WordPress 3.1 it&#8217;s on the right side of the admin and looks like this image.</li>
<li>Under Settings &gt; Reading set the front page to use a static page and select the new page you&#8217;ve created. The index of your website will now be your page template with no dynamic content and no other theme files included. Easy-peasy.</li>
</ul>
<p>Because you never called <code>get_header()</code>, <code>get_sidebar()</code>, or <code>get_footer()</code> you can now have a totally static splash page while you&#8217;re tweaking a theme, editing content, and doing your WordPress business in secret behind the scenes. If you still want to pull in some content from WordPress (like the title and page content) you can even grab the loop from your existing page.php and use it in your splash page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ScottNelle.com/252/create-a-static-splash-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Load A Page Into A WordPress Theme Outside Of The Loop</title>
		<link>http://www.ScottNelle.com/138/load-a-page-into-a-wordpress-theme/</link>
		<comments>http://www.ScottNelle.com/138/load-a-page-into-a-wordpress-theme/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:06:56 +0000</pubDate>
		<dc:creator>Scott Nelle</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.scottnelle.com/?p=138</guid>
		<description><![CDATA[I build a fair number of WordPress sites on small budgets for my employer, Union Street Media. Sometimes I need to give our clients an editable region in the sidebar, away from the main blog/page content. Here&#8217;s a quick and &#8230; <a href="http://www.ScottNelle.com/138/load-a-page-into-a-wordpress-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I build a fair number of WordPress sites on small budgets for my employer, Union Street Media. Sometimes I need to give our clients an editable region in the sidebar, away from the main blog/page content. Here&#8217;s a quick and dirty trick I use to pull a page into a theme outside of the loop:</p>
<pre><code> &lt;?php
// must use a variable for page id
// http://codex.wordpress.org/Function_Reference/get_page
$id = 3;
$p = get_page($id);
echo apply_filters('the_content', $p-&gt;post_content);
?&gt;</code></pre>
<p>You can get your page ID by editing the page. It will show up in the url (the &#8216;post=x&#8217; portion.) It&#8217;s important to note that you have to pass a variable to the <code>get_page()</code> function. If you just pass an integer it will throw a fatal error. No need to go into why that is; just keep it in mind. <code>get_page()</code> essentially wraps <code>get_post()</code> so <a href="http://codex.wordpress.org/Function_Reference/get_post">that function&#8217;s documentation</a> is a good place to start if you want to learn what&#8217;s available to you.</p>
<p>This isn&#8217;t a particularly pretty solution, but it&#8217;s quick and it works well provided you know your page IDs and you&#8217;re not making a theme for distribution. I like to name my page something like &#8216;**Sidebar Content&#8217; so it is easy to differentiate from regular pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ScottNelle.com/138/load-a-page-into-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>WordPress 301 Redirect Plugin Released</title>
		<link>http://www.ScottNelle.com/129/wordpress-301-redirect-plugin-released/</link>
		<comments>http://www.ScottNelle.com/129/wordpress-301-redirect-plugin-released/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 00:10:10 +0000</pubDate>
		<dc:creator>Scott Nelle</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.scottnelle.com/?p=129</guid>
		<description><![CDATA[I&#8217;m very pleased to announce that I&#8217;ve released my first WordPress plugin. It&#8217;s called Simple 301 Redirects and it does just what it says on the tin. It provides an interface for redirecting URL requests. It&#8217;s handy for when you&#8217;ve &#8230; <a href="http://www.ScottNelle.com/129/wordpress-301-redirect-plugin-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m very pleased to announce that I&#8217;ve released my first WordPress plugin. It&#8217;s called Simple 301 Redirects and it does just what it says on the tin. It provides an interface for redirecting URL requests. It&#8217;s handy for when you&#8217;ve migrated a site to WordPress and are unable to maintain the URL structure. With Simple 301 Redirects you can redirect your old urls like &#8220;/about.html&#8221; to new, clean URLs like &#8220;http://www.yoursite.com/pages/about/&#8221; or whatever you like. Redirecting your old links to new destinations is important for preserving inbound links and pagerank after migrating a site. And this plugin does it in the easiest possible way I could think of.</p>
<p>You can read a little bit more about the plugin at <a title="Simple 301 Redirects WordPress Plugin" href="/simple-301-redirects-plugin-for-wordpress/">its official home on this site </a>or go straight to the <a title="Download Simple 301 Redirects" href="http://wordpress.org/extend/plugins/simple-301-redirects/">WordPress plugin directory to download it</a>. I hope you find it helpful!</p>
<p><img class="alignnone size-full wp-image-116" title="Simple 301 Redirects Plugin Screenshot" src="http://www.scottnelle.com/wp-content/uploads/2009/08/301-plugin-screenshot.jpg" alt="Simple 301 Redirects Plugin Screenshot" width="550" height="298" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ScottNelle.com/129/wordpress-301-redirect-plugin-released/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

