<?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>Adventures in Keyframes and Code &#187; Wordpress</title>
	<atom:link href="http://www.keyframesandcode.com/code/category/development/php/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.keyframesandcode.com/code</link>
	<description>MaxScript, ActionScript, PHP &#38; JavaScript</description>
	<lastBuildDate>Mon, 30 Aug 2010 15:12:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress &#8220;Page Redirect&#8221; template</title>
		<link>http://www.keyframesandcode.com/code/development/php/wordpress/wordpress-template-page-redirect/</link>
		<comments>http://www.keyframesandcode.com/code/development/php/wordpress/wordpress-template-page-redirect/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 14:43:49 +0000</pubDate>
		<dc:creator>Dave Stewart</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.keyframesandcode.com/code/development/php/wordpress/wordpress-template-page-redirect/</guid>
		<description><![CDATA[The very nature of Wordpress demands that you work within it&#8217;s infrastructure in order to maintain flexibility. Sometimes, though, the structure of your pages demand that you need to operate outside of this constraint.
This template lets you specify a single URL as the page content, then as the page loads, the template automatically redirects the [...]]]></description>
			<content:encoded><![CDATA[<p>The very nature of Wordpress demands that you work within it&#8217;s infrastructure in order to maintain flexibility. Sometimes, though, the structure of your pages demand that you need to operate outside of this constraint.</p>
<p>This template lets you specify a single URL as the page content, then as the page loads, the template automatically redirects the page to this new location.</p>
<h3>Usage</h3>
<p>Once you&#8217;ve uploaded the <a href="/resources/php/wordpress/templates/template-redirect.zip">template-redirect.php</a> file to your themes&#8230; sub-directory, i.e. <strong>wp-content/themes/theme_name/</strong></p>
<p>1 &#8211; Create a new <strong>Page</strong> in your Wordpress control panel</p>
<p>2 &#8211; In the <strong>Page Content</strong> panel, just enter the URL (or local path) you want to redirect to:</p>
<p><img src="http://www.keyframesandcode.com/resources/php/wordpress/Page%20Redirect/page.gif" alt="" /></p>
<p>3 &#8211; Set the <strong>Page Template</strong> dropdown to &#8220;Page Redirect&#8221;:</p>
<p><img src="http://www.keyframesandcode.com/resources/php/wordpress/Page%20Redirect/page-template.gif" alt="" /></p>
<p>That&#8217;s it!</p>
<p><span style="color: #ff0000;">Note that in Wordpress 2.7 and later, you will need to do a little additional setup work to display the page template dropdown (don&#8217;t ask me why)</span>.</p>
<p>See this <a href="http://codex.wordpress.org/FAQ_Using_WordPress#Why_is_there_no_Page_Template_option_when_writing_or_editing_a_Page.3F">link</a> for further details.</p>
<h3>Examples</h3>
<p>Examples of URLS might be:</p>
<ul>
<li><strong>category/flowers</strong> (a relative link to the permalink for &#8220;flowers&#8221;)</li>
<li><strong>../page.html</strong> (a page outside of a Wordpress subfolder (the WP folder being <strong>/blog/</strong>) but still in your site)</li>
<li><strong>http://www.davestewart.co.uk/resources/</strong> (a page on a completely different site)</li>
</ul>
<p>The  &#8220;Latest developments…&#8221; page in my sidebar automatically redirects to <a href="/code/category/development/">/category/development/</a> &#8211; or in other words, the archive for my &#8220;Development&#8221; category, as my home page is not the standard &#8220;last-post first&#8221; format.</p>
<h3>Download</h3>
<p><a href="/resources/php/wordpress/Page Redirect/template-redirect.zip">template-redirect.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyframesandcode.com/code/development/php/wordpress/wordpress-template-page-redirect/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>
