<?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>crimulus-dot-com &#187; wordpress hide category</title>
	<atom:link href="http://www.crimulus.com/tag/wordpress-hide-category/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crimulus.com</link>
	<description>A blog; ineptly autobiographical</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:20:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WORDPRESS HOW-TO: Ignore/Hide A Category On Your Home Page</title>
		<link>http://www.crimulus.com/2010/02/28/wordpress-how-to-how-to-ignorehide-a-category-on-the-home-page/</link>
		<comments>http://www.crimulus.com/2010/02/28/wordpress-how-to-how-to-ignorehide-a-category-on-the-home-page/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:00:25 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[comma]]></category>
		<category><![CDATA[content themes]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[numeric id]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[query posts]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[url note]]></category>
		<category><![CDATA[wordpress get category id]]></category>
		<category><![CDATA[wordpress hide category]]></category>
		<category><![CDATA[wordpress hide multiple categories]]></category>
		<category><![CDATA[wordpress hide tag]]></category>
		<category><![CDATA[wordpress home]]></category>
		<category><![CDATA[XXX]]></category>

		<guid isPermaLink="false">http://www.coffeecuphalfmoons.com/?p=823</guid>
		<description><![CDATA[Sometimes you don&#8217;t want a particular category to appear on your WordPress home page.  For me, I create weekly Twitter digests, and I&#8217;d rather they not be part of the page welcome. The process of hiding them actually took me a little bit to figure out, so I thought I&#8217;d share.  It&#8217;s rather simple, so [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you don&#8217;t want a particular category to appear on your WordPress home page.  For me, I create weekly Twitter digests, and I&#8217;d rather they not be part of the page welcome.</p>
<p>The process of hiding them actually took me a little bit to figure out, so I thought I&#8217;d share.  It&#8217;s rather simple, so don&#8217;t blink!  <img src='http://www.crimulus.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Simply edit &#8220;index.php&#8221; in the wp-content/themes/&lt;your_theme_here&gt;/ directory.</p>
<p>Between the lines:</p>
<p><code>&lt;?php if (have_posts()) : ?&gt;</code></p>
<p>and</p>
<p><code>&lt;?php while (have_posts()) : the post(); ?&gt;</code></p>
<p>Insert the line:</p>
<p><code>&lt;?php if (is_home()) { query_posts("cat=-XXX"); } ?&gt;</code></p>
<p>Be sure to replace &#8220;XXX&#8221; with the unique numeric ID of the category you want to ignore.  To find the ID, log into your admin, navigate to your categories, and select the one you want to ignore.  The number will then appear in the URL.</p>
<p><strong>NOTE: Make sure you don&#8217;t delete the &#8220;-&#8221; before the &#8220;XXX&#8221; or else you will ONLY show entries from the category.</strong></p>
<p>If you update your theme, you will probably have to repeat this procedure.</p>
<p>If you want to hide <strong>multiple categories</strong> simply append the other categories to the string with a comma: (Example: &#8220;cat=-12,-82,-4&#8243;)</p>
<p>It also follows, then, that this technique can also be used to hide tags, posts, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crimulus.com/2010/02/28/wordpress-how-to-how-to-ignorehide-a-category-on-the-home-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

