Ajax Search Pro Documentation
Get Ajax Search Pro!Get SupportKnowledge BaseDevelopment
  • Ajax Search Pro Documentation
  • GDPR and Cookie policy
  • Video Guides
  • Plugin Updates
    • Automatic Updates
      • Activation on Development and Staging environments
      • Managing purchase codes
      • Purchase Code (license key)
    • Manual Updates
    • Safe Update Guide
    • Plugin update issues or errors
    • Disabling update check
  • Installation instructions
    • Uninstallation & Reset
  • Getting started
    • Importing from the Lite version
    • Editor Blocks
    • Search Shortcodes
    • Search Widget
    • Gutenberg and Other Page Editors
    • Replacing the default theme search bar
    • Placing the search shortcode in theme files
    • Search as menu item
    • Custom result box position
    • Custom filters box position
    • Shortcode generator
  • Search Sources
    • Search Engine
    • Post, Page, Product and other Post Type Search
    • Searching Titles, Content, Excerpt
    • Search in custom fields
      • Search By Product SKU
    • Search by categories, tags or other terms
    • Search in Attachments
      • Mime types table
    • Search in File contents (pdf, word, excel etc..)
    • Search in Users
      • User meta fields
    • Limits (number of results)
    • Categories and terms as results
    • Image options
    • Result ordering
    • Peepso Groups & Group activities search
    • Grouping title duplicates
  • Behavior
    • Return/Enter key and Magnifier icon click actions
    • Search logic (primary and secondary)
      • Exact Matches vs Fuzzy Matches
      • Search logics explained
    • Live search triggering events
    • Results page override
    • Results, Archive Page and Shop Live Search and Filter
  • Elementor Integration
    • Elementor Pro Posts Widget Live Filter
    • Elementor Loop Grid Integration
    • Elementor Pro Product Widget Live Filter
    • Custom results page with Elementor Pro
    • Elementor custom search page archive override and live filter
  • Other Integration
    • Jet Engine Listing Grid Integration
  • Multisite Settings
  • Frontend Search Settings & Search Filters
    • Settings layout, position and visibility
    • Generic Selectors
    • Content Type filters
    • Date filters
    • Category and Taxponomy term filters
    • Post type Filters
    • Custom field filters - selectors
    • Search button
    • Reset button
  • Layout Settings
    • Result Layout Types
    • Results information box
    • Results position & snap
    • Content, author, date and description in results
    • More results loader and infinite scroll feature
    • Results behavior
    • Results text keyword highlighter
    • Compact search box layout
    • Auto Populate - Automatic search results on initial page load
  • Autocomplete and Keyword suggestions
    • Autocomplete
    • Results and Keyword suggestions
    • "Try these" - suggested phrases
  • Theme Options - Visual changes to the search bar
    • Theme chooser
    • Preview
    • Search box and input field layout
    • Settings and Magnifier icon
    • Settings dropdown
    • Typography
  • Index Table
    • Generating the index table
    • Enabling index table engine
    • File Content Search Addon
    • Index table FAQ
    • Synonyms
  • Relevance Options
  • Advanced Options and Uses
    • Using the Results shortcode as a custom results page
    • Shortcodes in results content
    • HTML tags in results
    • Primary and Secondary title and description fields
    • Advanced title and Content fields
      • User Search - Advanced Title and Content fields
    • Excluding & Including results
      • Exclude by category or terms
      • Exclude or Include by authors (users)
      • Exclude or Include by date
      • Exclude by Item or ID
      • Include by ID
      • Include by categories or terms (restrict to category)
      • Exclude or Include by custom field values
    • Grouping results
    • Keyword Exception & Exclusions
  • Result priority settings
    • Individual Priorities
    • Priorities by Rules (priority groups)
  • Performance Tuning
    • Fine tuning the search configuration
    • Cache
    • Visual performance
    • Ajax performance tracker
  • Compatibility Settings
    • Javascript Compatibility
  • Google Analytics Integration (GA4)
    • Tracking with Google Site Tag (gtag.js)
    • Tracking with Google Tag Manager
    • Site Search Tracking
  • Troubleshooting
    • Styling issues
    • The response data is missing from the ajax request error message
  • Translating components
    • Translating with WPML
    • Translating with Polylang
  • Pre-Purchase FAQ
  • Plugin API
    • Actions list and usage
    • Filters list and usage
    • asp_query_args filter
    • Theme functions
    • Front-end filters API
    • Javascript API
  • Other Useful Things
    • Additional search keywords for post types
    • Negative keywords
    • Meta box on post editor screen
Powered by GitBook
On this page
  • Choosing terms
  • Display mode
  • Posts (or any CPT) with missing terms and the filter
  • Term logic (for checkboxes)
  • All of the selected terms should match logic (default)
  • At least one of the terms should match logic
  • All terms must match exactly logic
  1. Frontend Search Settings & Search Filters

Category and Taxponomy term filters

PreviousDate filtersNextPost type Filters

Last updated 6 years ago

Frontend Search Settings -> Categories & Taxonomy Terms

On this option panel, you can choose taxonomy term filters to be displayed on the front-end.

Choosing terms

First, use the Select the taxonomy option to select which taxonomy terms you want to use. For example, if you want post categories, choose the post - Categories option.

You can select individual items, or the "Use all from ..." option, in which case you can define exclusions for that taxonomy - in case you want to display everything, except some items.

For example, I want to display every category except the Uncategorized:

Display mode

Clicking the Change display mode button opens a pop-up window, where you can configure the filters layout.

Posts (or any CPT) with missing terms and the filter

By default, the taxonomy term filter includes items, that does not have any relation to the taxonomy terms visible in the filter.

If you prefer not showing these items instead, then you can do that by turning off the Show posts/CPM with empty (missing) taxonomy terms? option under the Frontend Search Settings -> Advanced panel.

To better understand the difference, please check the images below.

Term logic (for checkboxes)

The term logic option determines how each checkbox is validated agains the results per each taxonomy. By default, all selected terms must match in order for the result to display.

To understand how each possible logics respond, let's consider an example.

We have 3 categories: Actors, Female and Male, and Posts that are associated with each category accordingly. The screenshot below shows the default state, and all of the possible results.

All of the selected terms should match logic (default)

Any of the unchecked checkboxes is treated as an exclusion. Thus unchecking 'Female' will exclude anything categorized as 'Female', and the checked ones must still apply.

At least one of the terms should match logic

This is one of the simplest logic - thus if any of the checked checkboxes match the post, it is considered as a possible result. Unchecked checkboxes are ignored.

Because with this logic the unchecked checkboxes are ignored, using term based inclusions on the Advanced Options -> Exclude/Include results panel is not recommended.

For example: If category Actors is choosen in both options (used in filter as well as on the advanced options), then unchecking the Actors checkbox will have no effect, and posts from the Actors category will be still included.

Actors + Female yields all results, as Actors match any of them. Same happens with Actors + Male, or even if only Actors is selected.

Female will return all posts categorized as Female, even if Actors is not selected. Same happens with Male.

All terms must match exactly logic

This is the most strict logic, only recommended when using a small number of categories. In this case, all of the selected terms must match exactly the result terms, no overlapping/subset matches are allowed.

Selecting all categories will yield no results, as none of the results match Actors, Female and Male categories at the same time. Same will happend when choosing Female + Male.

Actors + Female shows anything matching both of the categories (similarly to the default logic). The same is true for Actors + Male.

Choosing Female only, yields the same results.

Display mode for taxonomy filters
Empty taxonomy terms option location
Results when the option is turned ON (default)
Results when the option is turned OFF
Taxonomy Term logic option
All possible categories and results
Female unchecked
Male unchecked
Both Male and Female unchecked
Actors unchecked
Only Female selected