This plugin creates two widgets:
- A widget where you can choose from all the categories in your blog.
This is similar to what newegg.com uses, where you can select multiple categories, and it will only show posts belonging to all the categories you select, and such categories can be narrowed down by selecting their subcategories.
- A widget where you can choose from all the tags in your blog
You can select the tags you want to search for, and it will only show posts that have all of the tags you selected.
After upgrading from 2.1 to 2.2 it is highly recommended that you deactivate the plugin and then re-activate it. Unfortunately WordPress 3.1 no longer calls register_activation_hook when the plugins are upgraded, so this may be necessary, otherwise you may not see all your categories.
When using version 3.2 or above, and excluding categories, the display order may or may not be mixed up when you exclude a parent category.
- What is a faceted search?
A good example of a faceted search is the directory newegg.com uses. Basically, you can select a couple categories (or tags if your using the tag widget), do the search, and the search will yield only articles that belong to all the selected categories (or selected tags). It’s a good way to narrow down searches.
- How do I use these widgets?
They both work pretty much the same, except that one goes by the categories on your site, and the other goes by the tags on your site. Just check the checkboxes next to the categories (or tags) that are relevant to your search, and click ‘search’. The real challenge becomes organizing your articles into categories that will allow for intuitive faceted searching, and I can’t help you with that.
- The widget looks ugly, how do I style it?
Once the plugin’s installed, just edit the faceted-search.css file that’s in the faceted-search folder to style the lists of categories and tags. If you want different images for the bullets, just replace the ones already in this plugin’s image folder with whatever you want.
- There are some categories missing from display!
A common solution to this problem is deactivating and reactivating the plugin.
- How do I exclude or disable a tag or category from the widget?
As of version 3.3, there are textboxes in the widget options where you can enter a comma-separated list of tags or categories to exclude from, or disable within, your widget.
- How do I display my search query in the URL so that I can link to it?
Select the “Get” request method in your widget. Please note that since this will display the search query in the URL, if you are displaying many categories in your category tree this may become too many characters for your browser’s address bar. Use at your own discretion. From what I’ve read, while http standards say there is no limit, popular browsers might have a URL character limit of around 2000.
- How do I get paged results instead of having the search results all display on one page?
To get paged results, you need to switch it to use the “Get” request method.
I have this plugin combined with a search bar plugin. Every time I do a search using my categories it pulls up all the right results but in the search bar the words "Faceted Search" appear. Any idea how to remove this?
- Quick bugfix: move trim() to correct place when building the query
- Bugfix: Not all descendants were being found in the category hierarchy, leading to missing search results
- Code Cleanup: Got rid of a few loops and replaced them with native php functions
- Bugfix and refactor: Cleaned up category and tag display code, and fix a tag display bug- misplaced closing html “li”
- Quick bug fix: when using paged results navigating from second page back to first was causing first page to display all results
- Allows you to use the “GET” request method when you submit a form so that your search query displays in the URL so that you can link to it and so that search results are split into pages. Please see the FAQ above.
- Uses search.php to display the search results, if it exists in your theme’s folder.
- Bugfix: Widget was hiding footers for some themes
- Bugfix: Category ordering page was being redirected to index page and erroring out.
- Added the ability to display but disable (exclude the checkbox for) categories and tags in the widget
- Minor bugfix to clear any residual get variables which might affect the template of the search results.
- Added the ability to exclude categories and tags from displaying in the widgets.
- Minor bugfix: categories weren’t showing up if added without specifying slug
- Minor bugfix: posts results were displaying as oldest first instead of newest first
- Enabled the option to conduct inclusive and ‘smart’ faceted searches in addition to the usual exclusive faceted search
- Re-wrote the search query builders. The new method doesn’t use as many joins so it might not be quite as scalable, but it sure as heck is more readable and easier to work with
- A bugfix to handle multisite database table prefixes
- A bugfix to make categories work that have been added or deleted after the plugin has activated.
- A bugfix to make the tags work again after the 2.0 changes
- An html bugfix for the categories
- A major code overhaul for building the display tree
- The ability to easily rearrange the categories and how they’re displayed
- Collapseable/expandable category tree
- Original version