<?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>406 media &#187; amuba</title>
	<atom:link href="http://406.co.za/category/blog/amuba/feed/" rel="self" type="application/rss+xml" />
	<link>http://406.co.za</link>
	<description>Just another Winetimes.co.za weblog</description>
	<lastBuildDate>Mon, 19 Jul 2010 10:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Check if current page is a subpage of another page</title>
		<link>http://406.co.za/2009/12/10/check-if-current-page-is-a-subpage-of-another-page/</link>
		<comments>http://406.co.za/2009/12/10/check-if-current-page-is-a-subpage-of-another-page/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:46:44 +0000</pubDate>
		<dc:creator>winetimes</dc:creator>
				<category><![CDATA[amuba]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://406.co.za/?p=252</guid>
		<description><![CDATA[The follow function will return true if the current wordpress page is a sub page of a specific page. function is_tree($pid) { global $post; if(is_page()&#38;&#38;($post-&#62;post_parent==$pid&#124;&#124;is_page($pid)&#124;&#124;in_array($pid, $post-&#62;ancestors))) return true; else return false; };]]></description>
			<content:encoded><![CDATA[<p>The follow function will return true if the current wordpress page is a sub page of a specific page.</p>
<p><code><br />
function is_tree($pid) {<br />
	global $post;<br />
	if(is_page()&amp;&amp;($post-&gt;post_parent==$pid||is_page($pid)||in_array($pid, $post-&gt;ancestors)))<br />
              return true;<br />
	else<br />
              return false;<br />
};<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://406.co.za/2009/12/10/check-if-current-page-is-a-subpage-of-another-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the post id outside the loop</title>
		<link>http://406.co.za/2009/12/10/get-the-post-id-outside-the-loop/</link>
		<comments>http://406.co.za/2009/12/10/get-the-post-id-outside-the-loop/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:36:17 +0000</pubDate>
		<dc:creator>winetimes</dc:creator>
				<category><![CDATA[amuba]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://406.co.za/?p=245</guid>
		<description><![CDATA[Small wpx function to retrieve a wordpress post id, outside the loop. Copy the following code to your functions.php file. function wpx_postID(){ global $wp_query; return $wp_query-&#62;post-&#62;ID; } You can now retrieve the ID by calling wpx_postID()]]></description>
			<content:encoded><![CDATA[<p>Small wpx function to retrieve a wordpress post id, outside the loop. Copy the following code to your functions.php file.<br />
<code>function wpx_postID(){<br />
global $wp_query;<br />
return $wp_query-&gt;post-&gt;ID;<br />
}</code></p>
<p>You can now retrieve the ID by calling wpx_postID()</p>
]]></content:encoded>
			<wfw:commentRss>http://406.co.za/2009/12/10/get-the-post-id-outside-the-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need some help with social media</title>
		<link>http://406.co.za/2009/10/07/need-some-help-with-social-media/</link>
		<comments>http://406.co.za/2009/10/07/need-some-help-with-social-media/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 15:29:23 +0000</pubDate>
		<dc:creator>winetimes</dc:creator>
				<category><![CDATA[amuba]]></category>

		<guid isPermaLink="false">http://406.co.za/?p=82</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><span id="more-82"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://406.co.za/2009/10/07/need-some-help-with-social-media/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
