[matador_search] Shortcode

This shortcode creates a form that will include at least a keyword search and submit button that submits to the jobs page as set in settings.

Parameters

fields A comma-separated list of fields for the search form. Defaults value is ‘keyword’ if omitted. Choose from:

  • keyword to add a text-based search field which checks the title and job description for close matches.
  • id to add a field that will search the remote source ID field, ie: Bullhorn, DaxTra, Salesforce, etc, depending on your connections.
  • ... $taxonomy You can add any number identifiers for registered taxonomies. These include ‘category’, ‘location’, and ‘type’ by default as well as any taxonomies included via extensions or custom code.
  • reset to add a “Reset Search” button before the “Submit” button.

class A string or comma-separated list of CSS class names to append to the search form’s HTML wrapper. Defaults to an empty string.

Examples

[matador_search]

This example will output a search form with a keyword text search and a submit button.

[matador_search fields="id"]

This example will create a form where users can input an external source id, for example the Bullhorn Job ID, and a submit button.

[matador_search fields=keyword,type,category,location]

This example will create a form where users can input a text search and/or select from HTML select drop-down menus a Employment Type, Job Category, and/or Location, and a submit button.

Customize

See the help doc on the matador_search() template function for information on how to customize the code of the search form.

Updated on September 24, 2023
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support