<?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>Rizwan Javaid &#187; WordPress Tips &amp; Tricks</title>
	<atom:link href="http://www.rizwanjavaid.com/category/wordpress/wordpress_tips_tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rizwanjavaid.com</link>
	<description>Designing Experiences</description>
	<lastBuildDate>Sun, 16 May 2010 19:28:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Excluding Cateogries in WordPress</title>
		<link>http://www.rizwanjavaid.com/2009/09/02/excluding-cateogries-in-wordpress/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=excluding-cateogries-in-wordpress</link>
		<comments>http://www.rizwanjavaid.com/2009/09/02/excluding-cateogries-in-wordpress/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:30:38 +0000</pubDate>
		<dc:creator>Rizwan</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress Tips & Tricks]]></category>
		<category><![CDATA[Categories]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.rizwanjavaid.com/?p=265</guid>
		<description><![CDATA[
			
				
			
		
There will be times when you need to not show a category on a certain page. You can either code this manually or use a plugin. Here are some options:
Manually Excluding a Category
Step 1: Go to your WordPress Dashboard
Step 2: Expand the Posts dropdown from the left sidebar
Step 3: Click on the Categories link
Step 4: [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 0px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rizwanjavaid.com%2F2009%2F09%2F02%2Fexcluding-cateogries-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rizwanjavaid.com%2F2009%2F09%2F02%2Fexcluding-cateogries-in-wordpress%2F&amp;source=rizwanjavaid&amp;style=compact&amp;service=bit.ly&amp;service_api=R_e2d7ae2847c95fa3b07a5988c79a6550" height="61" width="50" /><br />
			</a>
		</div>
<p>There will be times when you need to not show a category on a certain page. You can either code this manually or use a plugin. Here are some options:</p>
<p><strong>Manually Excluding a Category</strong><br />
Step 1: Go to your WordPress Dashboard<br />
Step 2: Expand the Posts dropdown from the left sidebar<br />
Step 3: Click on the Categories link<br />
Step 4: Click the Category you want to exclude<br />
Step 4: In you browser address bar you will see a url that contains your Category ID. It looks something like this:</p>
<pre class="brush: plain;"> &amp;amp;lt;br/&amp;amp;gt;http://www.yourwebsite.com/wp-admin/categories.php?action=edit&amp;amp;amp;cat_ID=5&amp;amp;lt;br/&amp;amp;gt;</pre>
<p>The Category ID is 5 at the end of the url (cat_ID=5).<br />
Step 5: Open the Functions.php file for your Theme<br />
Step 6: Past the following code before the closing PHP tage ?> and make sure you change -xx in the code below to your category id </p>
<pre class="brush: plain;">
function exclude_category($query) {
if ( $query-&amp;amp;gt;is_home ) {
$query-&amp;amp;gt;set('cat', '-xx');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');
</pre>
<p>Try it out. I will be updating this post with other examples of excluding categories and plugins you can use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rizwanjavaid.com/2009/09/02/excluding-cateogries-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
