Use the shortcode [otys-vacancies-filters]

It is possible to filter on the vacancies which are outputted via the shortcode [otys-vacancies-list] using the output of the shortcode [otys-vacancies-filters].

The shortcode [otys-vacancies-filters] outputs a list of filters. Which filters are shown can be changed in the settings of the OTYS Plugin in the admin panel in the tab 'Vacancies'. OTYS > Settings > Vacancies > Vacancy .

When a filter is applied by a user this changes the output of the [otys-vacancies-list] shortcode. The shortcode [otys-vacancies-filters] requires the shortcode [otys-vacancies-list] to be on the same page.

When a filter attribute is added on the shortcode [otys-vacancies-list] that specific filter will not be shown in the output of the [otys-vacancies-filters], this way it's possible to create a prefiltered vacancy overview (or landingpage) without the user being able to filter away from the predefined filters.

Attribute

Description

Example

show

From version 2.0.14

Show specific filters based on slugs. (Only filters enabled in the WordPress admin panel can be used)

[otys-vacancies-filters show="region"]

[otys-vacancies-filters show="region,hours-per-week"]

From version 2.0.20 If the shortcodes are not displayed via the_content() of WordPress, the shortcodes will not be able to automaticly communicate with eachother. To let the shortcodes still work in combination with eachother you'll have to use the same filter attributes on each shortcode. Which attributes you use for this can be seen in the documentation of the [otys-vacancies-list] shortcode.