<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Excluding certain categories from your blog main page</title>
	<atom:link href="http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/</link>
	<description>"... tech .... fun .. bizarre ... india .... pictures ..... anything in the world ...."</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:09:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vaibhav</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-14230</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Fri, 05 Mar 2010 02:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-14230</guid>
		<description>Thanks Patrik. I have consolidated your comments into one :)</description>
		<content:encoded><![CDATA[<p>Thanks Patrik. I have consolidated your comments into one <img src='http://blog.gadodia.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrik</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-14227</link>
		<dc:creator>Patrik</dc:creator>
		<pubDate>Thu, 04 Mar 2010 23:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-14227</guid>
		<description>I wanted to exclude a category with working pagination. After alot of struggle I ended up posting this code before The Loop in index.php (or any other template): 

query_posts(‘cat=-1′.’&amp;paged=’.$paged);
// This code removes category 1.

query_posts(‘cat=1,2,3′.’&amp;paged=’.$paged);
// This code shows category 1, 2 &amp; 3.</description>
		<content:encoded><![CDATA[<p>I wanted to exclude a category with working pagination. After alot of struggle I ended up posting this code before The Loop in index.php (or any other template): </p>
<p>query_posts(‘cat=-1′.’&#038;paged=’.$paged);<br />
// This code removes category 1.</p>
<p>query_posts(‘cat=1,2,3′.’&#038;paged=’.$paged);<br />
// This code shows category 1, 2 &#038; 3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry of Astoria</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-14108</link>
		<dc:creator>Terry of Astoria</dc:creator>
		<pubDate>Fri, 22 Jan 2010 11:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-14108</guid>
		<description>I found that method two worked for me, but only after I changed the double quote marks to single ones,like this:
&lt;?php query_posts($query_string . &#039;&amp;cat=-53&#039;); ?&gt; as the codex said here: http://codex.wordpress.org/The_Loop And hey, the drawback mentioned in the article for method 2 where the posts will be displayed anyway if they are also in another category did not affect my blog. They were excluded if they were in my excluded category even if they were in another category as well, which is fine for what I want! I am using a modified redline theme made from wp-framework and I&#039;m running the newest WP as of now, 2.9.1. Thanks for the great post!</description>
		<content:encoded><![CDATA[<p>I found that method two worked for me, but only after I changed the double quote marks to single ones,like this:<br />
&lt;?php query_posts($query_string . &#8216;&amp;cat=-53&#8242;); ?&gt; as the codex said here: <a href="http://codex.wordpress.org/The_Loop" rel="nofollow">http://codex.wordpress.org/The_Loop</a> And hey, the drawback mentioned in the article for method 2 where the posts will be displayed anyway if they are also in another category did not affect my blog. They were excluded if they were in my excluded category even if they were in another category as well, which is fine for what I want! I am using a modified redline theme made from wp-framework and I&#8217;m running the newest WP as of now, 2.9.1. Thanks for the great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noelley</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11506</link>
		<dc:creator>Noelley</dc:creator>
		<pubDate>Tue, 14 Jul 2009 06:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11506</guid>
		<description>Oops, I meant to say &quot;Method 2,&quot; since I also found the display gaps unacceptable. Again, thank you!</description>
		<content:encoded><![CDATA[<p>Oops, I meant to say &#8220;Method 2,&#8221; since I also found the display gaps unacceptable. Again, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11505</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Tue, 14 Jul 2009 06:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11505</guid>
		<description>You are most welcome of course.</description>
		<content:encoded><![CDATA[<p>You are most welcome of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noelley</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11504</link>
		<dc:creator>Noelley</dc:creator>
		<pubDate>Tue, 14 Jul 2009 06:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11504</guid>
		<description>Thank you so much!!! :) I tried several methods, including a plugin or two, and nothing worked. Your Method 1 worked perfectly, and took less than a minute to implement.</description>
		<content:encoded><![CDATA[<p>Thank you so much!!! <img src='http://blog.gadodia.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I tried several methods, including a plugin or two, and nothing worked. Your Method 1 worked perfectly, and took less than a minute to implement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11487</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11487</guid>
		<description>Dropped you an email :)</description>
		<content:encoded><![CDATA[<p>Dropped you an email <img src='http://blog.gadodia.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jannes</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11486</link>
		<dc:creator>Jannes</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11486</guid>
		<description>Oh, boy... big apologies:
 ?php if(!is_category(array(1,2,3)) {query_posts(&#039;cat=-4&#039;);} ?</description>
		<content:encoded><![CDATA[<p>Oh, boy&#8230; big apologies:<br />
 ?php if(!is_category(array(1,2,3)) {query_posts(&#8216;cat=-4&#8242;);} ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jannes</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11485</link>
		<dc:creator>Jannes</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11485</guid>
		<description>Sorry, code didn&#039;t get through...

</description>
		<content:encoded><![CDATA[<p>Sorry, code didn&#8217;t get through&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jannes</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-11484</link>
		<dc:creator>Jannes</dc:creator>
		<pubDate>Fri, 10 Jul 2009 21:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-11484</guid>
		<description>Hi Vaibhav

This is what I have put together sofar:
[code] [/code]

Exclude posts in cat 4 from frontpage, but not if the post has more than one category to it.

Do you have any suggestions/advice?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Vaibhav</p>
<p>This is what I have put together sofar:<br />
[code] [/code]</p>
<p>Exclude posts in cat 4 from frontpage, but not if the post has more than one category to it.</p>
<p>Do you have any suggestions/advice?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-10871</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Thu, 30 Apr 2009 18:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-10871</guid>
		<description>Hi TBG,

Can you try this outside the is_home() function? I am not sure why this shouldn&#039;t work.

Cheers.</description>
		<content:encoded><![CDATA[<p>Hi TBG,</p>
<p>Can you try this outside the is_home() function? I am not sure why this shouldn&#8217;t work.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TBG</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-10870</link>
		<dc:creator>TBG</dc:creator>
		<pubDate>Thu, 30 Apr 2009 16:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-10870</guid>
		<description>?php if (is_home()) {
query_posts($query_string . &quot;&amp;cat=-40&quot;);
}
? 
 ?php if (have_posts()) : while (have_posts()) : the_post(); ?</description>
		<content:encoded><![CDATA[<p>?php if (is_home()) {<br />
query_posts($query_string . &#8220;&amp;cat=-40&#8243;);<br />
}<br />
?<br />
 ?php if (have_posts()) : while (have_posts()) : the_post(); ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TBG</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-10869</link>
		<dc:creator>TBG</dc:creator>
		<pubDate>Thu, 30 Apr 2009 16:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-10869</guid>
		<description>whoops, code didnt post:

&lt;code&gt;


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>whoops, code didnt post:</p>
<p><code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TBG</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-10868</link>
		<dc:creator>TBG</dc:creator>
		<pubDate>Thu, 30 Apr 2009 16:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-10868</guid>
		<description>Hey, I&#039;m posting your code before my loop starts but nothing happens... Can you explain why the category I specify isnt being excluded? here is my code:

[code]


[/code]</description>
		<content:encoded><![CDATA[<p>Hey, I&#8217;m posting your code before my loop starts but nothing happens&#8230; Can you explain why the category I specify isnt being excluded? here is my code:</p>
<p>[code]</p>
<p>[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/comment-page-1/#comment-10831</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Mon, 20 Apr 2009 05:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/#comment-10831</guid>
		<description>Hi Ryan, I am not so sure on why it is not working (I have a migraine right now, so I might just be brain dead)...

Have you tried hard coding the category id that you are trying to exclude (just so that we know there is nothing wrong with the .get_option() function?</description>
		<content:encoded><![CDATA[<p>Hi Ryan, I am not so sure on why it is not working (I have a migraine right now, so I might just be brain dead)&#8230;</p>
<p>Have you tried hard coding the category id that you are trying to exclude (just so that we know there is nothing wrong with the .get_option() function?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
