<?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: WordPress Tips: Excluding Pages/Posts From Searches</title>
	<atom:link href="http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/feed/" rel="self" type="application/rss+xml" />
	<link>http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/</link>
	<description>Coding Tutorials, hints &#38; tips in PHP, jQuery, CSS &#38; HTML</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Chicago Limousine Service</title>
		<link>http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/comment-page-1/#comment-15858</link>
		<dc:creator>Chicago Limousine Service</dc:creator>
		<pubDate>Sat, 24 Apr 2010 07:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1549#comment-15858</guid>
		<description>I have already seen like this before but this is much better. I will also use this in my blog thanks a lot.</description>
		<content:encoded><![CDATA[<p>I have already seen like this before but this is much better. I will also use this in my blog thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/comment-page-1/#comment-14931</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Mon, 22 Mar 2010 22:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1549#comment-14931</guid>
		<description>Well I haven&#039;t had a chance to try it, but something like this would probably work:
[php]
query_posts(
	array_merge(
		array(&#039;category__not_in&#039; =&gt; array(1,2,3,4)),
		$wp_query-&gt;query
	)
)
[/php]
Again I haven&#039;t had the chance to try it, but I can&#039;t see any reason why it should work to exclude the categories you specify.

This will update the query &amp; re-save it into the WP object cache, so you won&#039;t be removing them after the fact. Also because you are merging the original query you shouldn&#039;t have any paginate problems.

Hope that helps, let me know how it goes. ;)</description>
		<content:encoded><![CDATA[<p>Well I haven&#8217;t had a chance to try it, but something like this would probably work:</p>
<pre class="brush: php;">
query_posts(
	array_merge(
		array('category__not_in' =&gt; array(1,2,3,4)),
		$wp_query-&gt;query
	)
)
</pre>
<p>Again I haven&#8217;t had the chance to try it, but I can&#8217;t see any reason why it should work to exclude the categories you specify.</p>
<p>This will update the query &#038; re-save it into the WP object cache, so you won&#8217;t be removing them after the fact. Also because you are merging the original query you shouldn&#8217;t have any paginate problems.</p>
<p>Hope that helps, let me know how it goes. <img src='http://return-true.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/comment-page-1/#comment-14930</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1549#comment-14930</guid>
		<description>Thanks for clarifying how this gets done. But -- and sorry to be the guy who just asks without contributing something -- have you had any luck with excluding whole *post categories* from WP search? I&#039;ve had pretty mixed results, and admittedly, the one time I got it to work was by accident. Biggest problem seems to be pagination, because I want to limit those unwanted categories out by default...not pluck-remove them from the big (already-been-paginated) catch. Any ideas?</description>
		<content:encoded><![CDATA[<p>Thanks for clarifying how this gets done. But &#8212; and sorry to be the guy who just asks without contributing something &#8212; have you had any luck with excluding whole *post categories* from WP search? I&#8217;ve had pretty mixed results, and admittedly, the one time I got it to work was by accident. Biggest problem seems to be pagination, because I want to limit those unwanted categories out by default&#8230;not pluck-remove them from the big (already-been-paginated) catch. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Tips: Excluding Pages/Posts From Searches • Return True &#124; digital living 365</title>
		<link>http://return-true.com/2010/02/wordpress-tips-excluding-pagesposts-from-searches/comment-page-1/#comment-14082</link>
		<dc:creator>Wordpress Tips: Excluding Pages/Posts From Searches • Return True &#124; digital living 365</dc:creator>
		<pubDate>Sun, 07 Feb 2010 23:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1549#comment-14082</guid>
		<description>[...] the original: Wordpress Tips: Excluding Pages/Posts From Searches • Return True   Tags: archives, article, attached-image, exclude, how to wordpress, javascript, news, php, posts, [...]</description>
		<content:encoded><![CDATA[<p>[...] the original: WordPress Tips: Excluding Pages/Posts From Searches • Return True   Tags: archives, article, attached-image, exclude, how to wordpress, javascript, news, php, posts, [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
