<?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>tony spencer &#187; Wordpress</title>
	<atom:link href="http://www.tonyspencer.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonyspencer.com</link>
	<description>It&#039;s Just Links</description>
	<lastBuildDate>Thu, 09 Apr 2009 13:19:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Empty Wordpress categories don&#8217;t show up in the sidebar navigation</title>
		<link>http://www.tonyspencer.com/2006/05/05/empty-wordpress-categories-dont-show-up-in-the-sidebar-navigation/</link>
		<comments>http://www.tonyspencer.com/2006/05/05/empty-wordpress-categories-dont-show-up-in-the-sidebar-navigation/#comments</comments>
		<pubDate>Fri, 05 May 2006 20:34:14 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.tonyspencer.com/2006/05/05/empty-wordpress-categories-dont-show-up-in-the-sidebar-navigation/</guid>
		<description><![CDATA[I&#8217;ve been playing with Wordpress this week for a new feature for my Raleigh, NC and ran into this issue.  If a category doesn&#8217;t have any posts in it, it will not show up in the sidebar navigation.  Even worse, if it is a parent category Wordpress will not show the children categories [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with Wordpress this week for a new feature for my <a href="http://www.raleighlist.org">Raleigh, NC</a> and ran into this issue.  If a category doesn&#8217;t have any posts in it, it will not show up in the sidebar navigation.  Even worse, if it is a parent category Wordpress will not show the children categories even if they aren&#8217;t empty.  I dug into the source code and found that the function responsible for retrieving the category list is wp_list_cats() and by default most themes pass no parameters to it.  However, it is capable of accepting a large range of settings including one to fix our problem.</p>
<p>In your sidebar.php file replace this:</p>
<blockquote>
<pre>&lt;?php wp_list_cats(); ?&gt;</pre>
</blockquote>
<p>with this:</p>
<blockquote><pre>&lt;?php
	$settings = "<span class="quote">hide_empty=0</span>";
	wp_list_cats($settings);
?&gt;</pre>
</blockquote>
<p>Now all of your categories will show up even if they don&#8217;t have any posts in them.  Unfortunately clicking on those empty categories results in &#8220;Sorry, no posts matched your criteria.&#8221;.  You can change this by adding a category.php and writing your own content for the scenario where the category is empty.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonyspencer.com/2006/05/05/empty-wordpress-categories-dont-show-up-in-the-sidebar-navigation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

