<?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>The Happy Affiliate &#187; Working with WordPress</title>
	<atom:link href="http://thehappyaffiliate.com/topics/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://thehappyaffiliate.com</link>
	<description>OverCome Everything, Earn A Great Living Online!</description>
	<lastBuildDate>Sat, 08 May 2010 16:21:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Wordpress Category Hack</title>
		<link>http://thehappyaffiliate.com/wordpress-category-hack</link>
		<comments>http://thehappyaffiliate.com/wordpress-category-hack#comments</comments>
		<pubDate>Thu, 30 Apr 2009 22:33:41 +0000</pubDate>
		<dc:creator>the happy affiliate</dc:creator>
				<category><![CDATA[Working with WordPress]]></category>

		<guid isPermaLink="false">http://thehappyaffiliate.com/?p=233</guid>
		<description><![CDATA[
With the default WordPress installation you can display a list of categories in the side bar. Sometimes you do not want to show every category however.  You may be designing a custom page, where you only want the subcategories showing, or some themes use a custom category like &#8220;featured&#8221; to show only the posts that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-257" title="dog1" src="http://thehappyaffiliate.com/wp-content/uploads/2009/01/dog1-258x300.jpg" alt="dog1" width="258" height="300" /></p>
<p>With the default WordPress installation you can display a list of categories in the side bar. Sometimes you do not want to show every category however.  You may be designing a custom page, where you only want the subcategories showing, or some themes use a custom category like &#8220;featured&#8221; to show only the posts that are in this category on the main page. You don&#8217;t usually need or want this category showing in the side post, it is just &#8220;clutter&#8221;</p>
<p>There are many plug-ins that can provide you with a customized category listing, however I have found from experience, that you can spend way too much time downloading, installing, and repeating until you find one that suites your site.</p>
<p>There is an easier way to exclude specific categories from your Category list.</p>
<p><span id="more-233"></span></p>
<p><strong>1)</strong><strong>You will need to know the category ID(s)</strong> that you want to exclude. There are 2 ways to find these:</p>
<p style="padding-left: 30px;">a) Go to your Categories section in wordpress admin(Posts-&gt;Categories) and mouse over a category, you will see the cat_ID=# at the bottom of your browser window.</p>
<p style="padding-left: 30px;">b) Use the <a href="http://www.schloebe.de/wordpress/reveal-ids-for-wp-admin-25-plugin/" target="_blank">Reveal ID&#8217;s for WP Admin</a> Plugin</p>
<p><strong>2)</strong>Next you will need to <strong>edit the widgets.php file</strong>. You cannot do this with the built in wp editor. You must use your favorite FTP client. <strong>Navigate to wp-includes/widgets.php</strong> in your WP installation and copy the file to your hard drive.</p>
<p><strong>3)</strong> Open widgets.php in a text editor and locate the following line: (use the search function)</p>
<div class="postmeta">$d = $options[$number]['dropdown'] ? &#8216;1&#8242; : &#8216;0&#8242;;</div>
<p><strong>4)</strong> Ad the following directly under the above line. Replace the 1,2,3 with the categories you want to exclude</p>
<div class="postmeta">$ex = &#8220;1,2,3&#8243;;</div>
<p><strong>5)</strong> Next find the following line:</p>
<div class="postmeta">$cat_args = array(&#8216;orderby&#8217; =&gt; &#8216;name&#8217;, &#8217;show_count&#8217; =&gt; $c, &#8216;hierarchical&#8217; =&gt; $h);</div>
<p><strong>6)</strong> Replace it with this:</p>
<div class="postmeta">$cat_args = array(&#8216;orderby&#8217; =&gt; &#8216;name&#8217;, &#8217;show_count&#8217; =&gt; $c, &#8216;hierarchical&#8217; =&gt; $h, &#8216;exclude&#8217; =&gt; $ex );</div>
<p><strong>7)</strong> Save it, and upload your new widgets.php back to the wp-includes directory on your server.</p>
<p><strong>Your sidebar category widget should now display all the categories except the ones you excluded.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://thehappyaffiliate.com/wordpress-category-hack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
