=== Search By Category === Contributors: Fire G Plugin link: https://github.com/JonathanWolfe/Search-By-Category Tags: search, category, specify, results Requires at least: 2.5.1 Tested up to: 3.4.1 Stable tag: trunk Reconfigures search results to display results based off of category of posts. == Description == To help users find the posts they're looking for faster, this plugin allows them to search for articles or posts within certian categories, cutting back on the number of results the user needs to crawl through to find the article they want. **Change log** 2.0.3 - Fixed automatic category reselect 2.0.2 - Fixed inall_exclude use case failure 2.0.1 - Removes leftover debug code 2.0 - Exclude from categories from "in all categories" - No drop-down menu when using "only_cat" parameter - Added sbc() controls - Added shortcode controls 1.5 - Converted options storage from seperate rows to one array - Updated code to be more standardized and readable 1.4.1 - XSS security fix (by Manuel Razzari - http://ultimorender.com.ar/funkascript/) 1.4 - Search box retains searched value (by Manuel Razzari) - Default style usage on/off fix (by Manuel Razzari) 1.3 - Dropdown now automatically selects current category if viewing an archive 1.2.1 - Fixed settings saving issue 1.2 - Included Shortcode: [sbc] 1.1 - Added security fixes - Removed some excess code 1.0.0 - Default text - Custom styling Beta 3 - Search Text - Exclude Child categories - search box auto empties and refills if nothing entered Beta 2 - First complete working version - Hide Empty - Focus - Exclude Categories Beta 1 - First working version - Category exclustion from drop-down list isn't functional Alpha 1 - All functions are present but independent == Installation == 1. Download, unzip and upload to your WordPress plugins directory 1. activate the plugin within you WordPress Administration 1. Go to Settings > Search By Category 1. Use the following code in your Theme:
<?php if(function_exists('sbc')){ 
	sbc();
} else { ?>
	// Your regular form code goes here
<?php } ?>
or
[sbc]
== Customizations == _List of arguments in order_ * focus - replaces "In all categories"
* hide_empty - 1 means true, 0 means false
* search_text - replaces "Search for..."
* only_cat - category name/slug/ID [removes dropdown list]
* excluded_cats - must be category IDs seperated by commas (ex: 1,2,3) / removes categories from dropdown list
* exclude_child - 1 means true, 0 means false
* inall_exclude - must be category IDs seperated by commas (ex: 1,2,3) / removes categories from "in all categories" and dropdown list
If you don't want to customize a setting, use: null, 0, or ''. == Screenshots == 1. SBC From with custom styling 2. SBC config page