<?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>SDAC Inc &#124; Chicagoland Web Development &#187; search</title> <atom:link href="http://www.sandboxdev.com/tag/search/feed/" rel="self" type="application/rss+xml" /><link>http://www.sandboxdev.com</link> <description>Just another Sandbox Development and Consulting Inc. Sites site</description> <lastBuildDate>Wed, 25 Jan 2012 07:57:33 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Search Specific Category in WordPress</title><link>http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress/</link> <comments>http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress/#comments</comments> <pubDate>Thu, 11 Oct 2007 01:49:33 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[search]]></category> <category><![CDATA[WordPress categories]]></category> <category><![CDATA[WordPress customizations]]></category> <category><![CDATA[WordPress functions]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress.php</guid> <description><![CDATA[There are some times when you want to limit your search to a particular category, or perhaps multiple categories. This is relatively simple to do in WordPress by adding a hidden field to your search code. (See example below) You can see I added my hidden input field on the third line. When I add [...]]]></description> <content:encoded><![CDATA[<p>There are some times when you want to limit your search to a particular category, or perhaps multiple categories. This is relatively simple to do in WordPress by adding a hidden field to your search code. (See example below)</p><pre class="brush: php; title: Custom Code; notranslate">
&lt;form method=&quot;get&quot; id=&quot;search form&quot; action=&quot;/&quot;&gt;
&lt;div&gt;
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
&lt;input type=&quot;hidden&quot; value=&quot;22&quot; name=&quot;cat&quot; id=&quot;scat&quot; /&gt;
&lt;/div&gt;
&lt;/form&gt;
</pre><p>You can see I added my hidden input field on the third line.  When I add this in, it then adds onto the query used to search. Your search will go from something like http://www.sandboxdev.com/?s=WordPress to http://www.sandboxdev.com/?s=WordPress&amp;cat=22 and will only return posts in the category ID you choose.</p> <script type="text/javascript">sdac_post_slideshows.push({fx: 'fade', timeout: 0, speed: 1000, pause: 0,})</script>]]></content:encoded> <wfw:commentRss>http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress/feed/</wfw:commentRss> <slash:comments>53</slash:comments> </item> </channel> </rss>
