This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Search By Category

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

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

  • SBC config page
  • SBC From with custom styling

Reviews

Read all 3 reviews

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code