<?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>Nate&#039;s blog &#187; custom field</title>
	<atom:link href="http://www.natenewz.com/tag/custom-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.natenewz.com</link>
	<description>My various projects</description>
	<lastBuildDate>Wed, 27 Oct 2010 00:07:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hardlink Wordpress Navigation</title>
		<link>http://www.natenewz.com/2009/10/07/hardlink-wordpress-navigation/</link>
		<comments>http://www.natenewz.com/2009/10/07/hardlink-wordpress-navigation/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 21:10:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom field]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[hard]]></category>
		<category><![CDATA[hardlink]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.natenewz.com/blog/?p=36</guid>
		<description><![CDATA[This cool little theme code snippet allows the wordpress navigation to link to a page outside of wordpress. It takes advantage of custom fields for pages.  Just place this code at the top of your themes header.php file
&#60;?php
/*
Copyright (c) 2009 &#60; Nate Nuzum &#62;
Use under terms of MIT license
*/
global $post;
$redirect = get_post_meta($post-&#62;ID, &#39;redirect&#39;, true);
if [...]]]></description>
			<content:encoded><![CDATA[<p>This cool little theme code snippet allows the wordpress navigation to link to a page outside of wordpress. It takes advantage of custom fields for pages. <img alt="custom-field" class="alignnone size-full wp-image-45" src="http://www.natenewz.com/wp-content/uploads/2009/10/custom-field.jpg" style="width: 80%;" title="custom-field" /> Just place this code at the top of your themes header.php file</p>
<pre class="prettyprint" id="PHP">&lt;?php
/*
Copyright (c) 2009 &lt; Nate Nuzum &gt;
Use under terms of MIT license
*/
global $post;
$redirect = get_post_meta($post-&gt;ID, &#39;redirect&#39;, true);
if ($redirect)
        wp_redirect($redirect);
?&gt;
</pre>
<p>Then create a page with the name having the link text you want to appear in the navigation add a custom field to the page called redirect and place the link url into the value field.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.natenewz.com/2009/10/07/hardlink-wordpress-navigation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

