<?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>Fireside Media Development Blog &#187; open source</title>
	<atom:link href="http://www.firesidemedia.net/dev/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.firesidemedia.net/dev</link>
	<description></description>
	<lastBuildDate>Mon, 24 Aug 2009 23:23:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Show Only Children Pages on Parent Page</title>
		<link>http://www.firesidemedia.net/dev/show-only-children-pages-on-parent-page/</link>
		<comments>http://www.firesidemedia.net/dev/show-only-children-pages-on-parent-page/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 22:54:32 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.firesidemedia.net/dev/?p=113</guid>
		<description><![CDATA[There is still much to be desired within WordPress when it comes to dealing with parent and children pages. The core code is there, and it&#8217;s usable, but there&#8217;s not a lot &#8220;out of the box&#8221; to play with. We&#8217;ve developed a bit of code to help make your life a little easier. Adding the [...]]]></description>
			<content:encoded><![CDATA[<p>There is still much to be desired within WordPress when it comes to dealing with parent and children pages.  The core code is there, and it&#8217;s usable, but there&#8217;s not a lot &#8220;out of the box&#8221; to play with.</p>
<p><strong>We&#8217;ve developed a bit of code to help make your life a little easier.</strong></p>
<p>Adding the code below to your functions.php file will let you remove the other children pages while on the parent page.</p>
<pre class="brush: php;">add_filter('wp_list_pages_excludes', 'remove_others_children');
function remove_others_children($excludes = array()) {
  $all_pages = get_pages();
  $all_children = (array) get_page_children(true, $all_pages);
  foreach ( $all_children as $child )
    $excludes[] = $child-&gt;ID;

  if ( ! is_page() )
    return $excludes;

  global $post;

  $this_heirarchy = (array) $post-&gt;ancestors;
  $this_children = (array) get_page_children($post-&gt;ID, $all_pages);
  foreach ( $this_heirarchy as $ancestor )
    $this_children = array_merge($this_children, (array) get_page_children($ancestor, $all_pages));

  foreach ($this_children as $child)
    $this_heirarchy[] = $child-&gt;ID;

  return array_diff($excludes, $this_heirarchy);
}</pre>
<p>Here are some examples of what it would like without the code, then with the code.</p>
<p><img src="http://www.firesidemedia.net/dev/files/wordpress-remove-children-from-parents-pages.jpg" alt="WordPress:  Remove Children Pages from Parent Pages" title="WordPress:  Remove Children Pages from Parent Pages" width="491" height="474" class="size-full wp-image-115" /></p>
<p>A huge thanks goes out to <a href="http://sivel.net/">Matt Martz</a> for working with us on helping get this code ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firesidemedia.net/dev/show-only-children-pages-on-parent-page/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fireside Media LLC Software Development</title>
		<link>http://www.firesidemedia.net/dev/fireside-media-llc-software-development/</link>
		<comments>http://www.firesidemedia.net/dev/fireside-media-llc-software-development/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 18:07:30 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.firesidemedia.net/dev/fireside-media-llc-software-development/</guid>
		<description><![CDATA[We have the start of what will be a long line of open source products by Fireside Media, LLC. To start it, we are releasing an updated version of the Twitter Updater plugin. The plugin was originally written by Victoria, but she gave us permission to release the updated version here. The plugin was modified [...]]]></description>
			<content:encoded><![CDATA[<p>We have the start of what will be a long line of <a href="http://www.firesidemedia.net/dev/software/">open source</a> products by <a href="http://www.firesidemedia.net/">Fireside Media, LLC</a>.  To start it, we are releasing an updated version of the <a href="http://www.firesidemedia.net/dev/software/wordpress/twitter-updater/">Twitter Updater plugin</a>.</p>
<p>The plugin was originally written by Victoria, but she gave us permission to release the updated version here.  The plugin was modified by Jonathan to include tinyurl.com&#8217;s API as part of the Twitter updating.</p>
<p>We have some other great ideas for <a href="http://www.firesidemedia.net/dev/software/wordpress/">WordPress plugins</a> already coming along and will be releasing them in stages.  Expect some new plugins to come out within the next few weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firesidemedia.net/dev/fireside-media-llc-software-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
