<?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: How to Hack the WordPress Search Function: Search Categories and Child Categories</title>
	<atom:link href="http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Thu, 26 Jan 2012 06:40:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: activo</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62654</link>
		<dc:creator>activo</dc:creator>
		<pubDate>Fri, 22 Jul 2011 19:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62654</guid>
		<description>i&#039;m sorry it worked :)
thank you very much for your enlightment !</description>
		<content:encoded><![CDATA[<p>i&#8217;m sorry it worked <img src='http://wpgarage.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thank you very much for your enlightment !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: activo</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62653</link>
		<dc:creator>activo</dc:creator>
		<pubDate>Fri, 22 Jul 2011 19:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62653</guid>
		<description>sorry i forgot two equal
but itdoesn t work anyway
here&#039;s code i tried
 &lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php bloginfo(&#039;url&#039;); ?&gt;/&quot;&gt;
    &lt;input type=&quot;text&quot; value=&quot;&lt;?php echo wp_specialchars($s, 1); ?&gt;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;cat&quot; value=&quot;3&quot; /&gt;News dal web
    &lt;input type=&quot;checbox&quot; name=&quot;cat&quot; value=&quot;4&quot;/&gt;Annunci pubblicati
       &lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot;  class=&quot;submit&quot; value=&quot;Cerca&quot; /&gt;
    &lt;/form&gt;</description>
		<content:encoded><![CDATA[<p>sorry i forgot two equal<br />
but itdoesn t work anyway<br />
here&#8217;s code i tried<br />
 &lt;form method=&#8221;get&#8221; id=&#8221;searchform&#8221; action=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;/&#8221;&gt;<br />
    &lt;input type=&#8221;text&#8221; value=&#8221;&lt;?php echo wp_specialchars($s, 1); ?&gt;&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; /&gt;<br />
    &lt;input type=&#8221;checkbox&#8221; name=&#8221;cat&#8221; value=&#8221;3&#8243; /&gt;News dal web<br />
    &lt;input type=&#8221;checbox&#8221; name=&#8221;cat&#8221; value=&#8221;4&#8243;/&gt;Annunci pubblicati<br />
       &lt;input type=&#8221;submit&#8221; id=&#8221;searchsubmit&#8221;  class=&#8221;submit&#8221; value=&#8221;Cerca&#8221; /&gt;<br />
    &lt;/form&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: activo</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62652</link>
		<dc:creator>activo</dc:creator>
		<pubDate>Fri, 22 Jul 2011 19:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62652</guid>
		<description>great snippet man!
i was trying to make two checkboxes to give the possibility to the user to decide in wich category to search.
i have only two category in my website, but it doesn t work..seems that that the form add to the url the category filter only when it is passed by an &quot;input=&quot;hidden&quot;..is it possible?
this is the code i tried..:
&lt;code&gt;
  &lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php bloginfo(&#039;url&#039;); ?&gt;/&quot;&gt;
    &lt;input type=&quot;text&quot; value=&quot;&lt;?php echo wp_specialchars($s, 1); ?&gt;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;cat&quot; value=&quot;3&quot; /&gt;News
    &lt;input type=&quot;checbox&quot; name&quot;cat&quot; value&quot;4&quot;/&gt;Annunci
       &lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot;  class=&quot;submit&quot; value=&quot;Cerca&quot; /&gt;
    &lt;/form&gt;
thanks in advance!
&lt;code&gt;</description>
		<content:encoded><![CDATA[<p>great snippet man!<br />
i was trying to make two checkboxes to give the possibility to the user to decide in wich category to search.<br />
i have only two category in my website, but it doesn t work..seems that that the form add to the url the category filter only when it is passed by an &#8220;input=&#8221;hidden&#8221;..is it possible?<br />
this is the code i tried..:<br />
&lt;code&gt;<br />
  &lt;form method=&#8221;get&#8221; id=&#8221;searchform&#8221; action=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;/&#8221;&gt;<br />
    &lt;input type=&#8221;text&#8221; value=&#8221;&lt;?php echo wp_specialchars($s, 1); ?&gt;&#8221; name=&#8221;s&#8221; id=&#8221;s&#8221; /&gt;<br />
    &lt;input type=&#8221;checkbox&#8221; name=&#8221;cat&#8221; value=&#8221;3&#8243; /&gt;News<br />
    &lt;input type=&#8221;checbox&#8221; name&#8221;cat&#8221; value&#8221;4&#8243;/&gt;Annunci<br />
       &lt;input type=&#8221;submit&#8221; id=&#8221;searchsubmit&#8221;  class=&#8221;submit&#8221; value=&#8221;Cerca&#8221; /&gt;<br />
    &lt;/form&gt;<br />
thanks in advance!<br />
&lt;code&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: best tv price</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62241</link>
		<dc:creator>best tv price</dc:creator>
		<pubDate>Thu, 24 Mar 2011 20:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62241</guid>
		<description>i am in search of multiple category or tags search plugin. I have tried a plugin that is multi category search widget but it is not helping me as i need. i have a &lt;a href=&quot;http://www.best-tv-price-review-india.com&quot; target=&quot;_blank&quot;&gt;television&lt;/a&gt;&lt;br /&gt;site and i am looking for a plugin that can help my users to select television by category
 </description>
		<content:encoded><![CDATA[<p>i am in search of multiple category or tags search plugin. I have tried a plugin that is multi category search widget but it is not helping me as i need. i have a &lt;a href=&#8221;http://www.best-tv-price-review-india.com&#8221; target=&#8221;_blank&#8221;&gt;television&lt;/a&gt;&lt;br /&gt;site and i am looking for a plugin that can help my users to select television by category<br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bledar Ramo</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62071</link>
		<dc:creator>Bledar Ramo</dc:creator>
		<pubDate>Mon, 24 Jan 2011 20:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-62071</guid>
		<description>Hi you can use this code with Search unleashed
http://www.ramoservice.com/thesis-themes/add-search-box-in-thesis-theme/</description>
		<content:encoded><![CDATA[<p>Hi you can use this code with Search unleashed<br />
<a href="http://www.ramoservice.com/thesis-themes/add-search-box-in-thesis-theme/" rel="nofollow">http://www.ramoservice.com/thesis-themes/add-search-box-in-thesis-theme/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress as a Knowledgebase &#124; Call me stupid, but...</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61998</link>
		<dc:creator>WordPress as a Knowledgebase &#124; Call me stupid, but...</dc:creator>
		<pubDate>Thu, 20 Jan 2011 22:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61998</guid>
		<description>[...] always the best, so it did occur to me to use Google Custom Search instead, but having discovered ways to hack the standard search function, the free option seemed the best way to go – at least initially. As with any web project, things [...]</description>
		<content:encoded><![CDATA[<p>[...] always the best, so it did occur to me to use Google Custom Search instead, but having discovered ways to hack the standard search function, the free option seemed the best way to go – at least initially. As with any web project, things [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 Useful WordPress Search Code Snippets &#171; Referência própria do wordpress</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61694</link>
		<dc:creator>10 Useful WordPress Search Code Snippets &#171; Referência própria do wordpress</dc:creator>
		<pubDate>Sun, 03 Oct 2010 11:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61694</guid>
		<description>[...] Source: wpgarage.com ? [...]</description>
		<content:encoded><![CDATA[<p>[...] Source: wpgarage.com ? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61693</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 01 Oct 2010 20:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61693</guid>
		<description>Maybe someone can help me with this one. I have a product list on my site being pulled from an additional table in mysql. I would like to include these products in the search. Is this possible?</description>
		<content:encoded><![CDATA[<p>Maybe someone can help me with this one. I have a product list on my site being pulled from an additional table in mysql. I would like to include these products in the search. Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 Useful WordPress Search Code Snippets &#171; UKWDS!</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61673</link>
		<dc:creator>10 Useful WordPress Search Code Snippets &#171; UKWDS!</dc:creator>
		<pubDate>Tue, 21 Sep 2010 02:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61673</guid>
		<description>[...] Source: wpgarage.com &#8594; [...]</description>
		<content:encoded><![CDATA[<p>[...] Source: wpgarage.com &rarr; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://wpgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61644</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 04 Sep 2010 11:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/how-to-hack-the-wordpress-search-function-search-categories-and-child-categories/#comment-61644</guid>
		<description>I know its a little late but you can use this code with Search unleashed, all you need to do is change the word &#039;cat&#039; to &#039;post_category&#039; since search unleashed describes categories as &#039;post_categories&#039; and wordpress search uses &#039;cat&#039;.
So any return when searching category 5 would be
/?post_category=5&amp;s=
instead of
/s=</description>
		<content:encoded><![CDATA[<p>I know its a little late but you can use this code with Search unleashed, all you need to do is change the word &#8216;cat&#8217; to &#8216;post_category&#8217; since search unleashed describes categories as &#8216;post_categories&#8217; and wordpress search uses &#8216;cat&#8217;.<br />
So any return when searching category 5 would be<br />
/?post_category=5&amp;s=<br />
instead of<br />
/s=</p>
]]></content:encoded>
	</item>
</channel>
</rss>

