<?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>chaka chaka &#187; exclude</title>
	<atom:link href="http://pata.ponchakapon.com/tag/exclude/feed/" rel="self" type="application/rss+xml" />
	<link>http://pata.ponchakapon.com</link>
	<description>can i go home now?</description>
	<lastBuildDate>Sun, 20 Nov 2011 20:23:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>wordpress: exclude categories from main page</title>
		<link>http://pata.ponchakapon.com/2008/08/wordpress-exclude-categories-from-main-page/</link>
		<comments>http://pata.ponchakapon.com/2008/08/wordpress-exclude-categories-from-main-page/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 13:25:52 +0000</pubDate>
		<dc:creator>justine</dc:creator>
				<category><![CDATA[011010]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://pata.ponchakapon.com/?p=254</guid>
		<description><![CDATA[to exclude certain categories from the main page of your blog (assuming you&#8217;re like the other 99% non-freaks who use blog posts not a static page as your main page) like how i&#8217;m not cluttering my posts with my baju category aka category 23 and instead forcing voyeuristic casual surfers with ephebephilic tendencies to click [...]]]></description>
			<content:encoded><![CDATA[<p>to exclude certain categories from the main page of your blog (assuming you&#8217;re like the other 99% non-freaks who use blog posts not a static page as your main page) like how i&#8217;m not cluttering my posts with my <a href="http://pata.ponchakapon.com/baju/">baju</a> category aka category 23 and instead forcing voyeuristic casual  surfers with ephebephilic tendencies to click on a navigational link in my <a href="http://powazek.com/posts/413">interesting footer</a>&#8230;</p>
<p>deep breath</p>
<p>in the earlier layout, i used wordpress&#8217; built-in <a href="http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page">Query_posts</a>, placing following syntax into the index.php file of my theme. (whitespace makes no difference.)</p>
<blockquote>
<pre>&lt;?php
   if (is_home()) {
      query_posts("cat=-23");
   }
?&gt;</pre>
</blockquote>
<p>but for some reason, this method didn&#8217;t work with derek powazek&#8217;s awesome minimalist <a href="http://powazek.com/depo-skinny">DePo skinny</a> theme (which, if you hadn&#8217;t noticed, i&#8217;m currently loving).</p>
<p>so, i googled <a href="http://blog.gadodia.net/excluding-certain-categories-from-your-blog-main-page/">this trick</a>. just pop in</p>
<blockquote><p><span style="font-family: Courier New;"> &lt;?php query_posts($query_string . &#8220;&amp;cat=-23&#8243;); ?&gt;</span></p></blockquote>
<p>before the line that says:</p>
<blockquote><p>&lt; ?php if (have_posts()) : ?&gt;</p></blockquote>
<p>ta-dah! done.additional: for hemingway <a href="http://startup365.com/blog/hemingway-reloaded/wordpress/">reloaded template</a>, insert <strong>&amp;cat=-23</strong> into existing query like so</p>
<blockquote><p>&lt;?php query_posts(&#8216;showposts=10<strong>&amp;cat=-23</strong>&#8216;); 					?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://pata.ponchakapon.com/2008/08/wordpress-exclude-categories-from-main-page/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

