Shortcodes and blocks

View as Markdown

Reference for the wkjb_jobs, wkjb_filters, wkjb_job and wkjb_apply shortcodes and matching blocks, with every attribute for the job list and filters.

You get a job list at /jobs/ without doing anything. Use these shortcodes and blocks to put jobs anywhere else: a careers page you designed yourself, a sidebar, a landing page.

Job list with department and location filters, rendered by Workable Jobs for WordPress
The job list, rendered by [wkjb_jobs] or the Job List block.

In the block editor, the same four pieces are blocks: search the inserter for “Job” to find Job List, Job Filters, Single Job and Job Application Form. Each block shows a live preview of what it will render. Single Job and Job Application Form take the Workable job ID in the block settings sidebar; Job List lets you set the number of jobs per page and a department or location there. Every other attribute below keeps its default in a block; use the shortcode when you need one of those.

ShortcodeWhat it showsBlock name
[wkjb_jobs]The job listwkjb/job-list
[wkjb_filters]The search and filter formwkjb/job-filters
[wkjb_job]One jobwkjb/single-job
[wkjb_apply]The apply area for one jobwkjb/application-form

Yes/no attributes take yes or no.

[wkjb_jobs] — job list

AttributeDefaultWhat it does
per_page20Jobs per page.
columns1Grid columns, 1 to 4.
departmentemptyShow only one department. Takes the department name, for example department="Engineering".
officeemptyShow only one location. Takes the location name as shown in the filter dropdown.
searchemptyShow only jobs matching this text in the title, location, description or department.
show_filtersnoShow the search and filter form above the list.
show_countyesShow “Showing 1–20 of 74 open positions”.
show_paginationyesShow page links when there is more than one page.
show_locationyesShow each job’s location.
show_departmentyesShow each job’s department.
show_datenoShow each job’s posting date.
show_excerptnoShow a short excerpt of each job’s description.
group_byemptydepartment or office groups the list under headings.
boardemptyLeave empty. 1.0 connects one Workable account.

Jobs are sorted newest first.

Examples:

[wkjb_jobs show_filters="yes"]
[wkjb_jobs department="Engineering" per_page="5" show_count="no" show_pagination="no"]
[wkjb_jobs columns="2" group_by="department" show_excerpt="yes"]

When department, office or search is set on the shortcode, it wins over what the visitor picks in the filter form.

[wkjb_filters] — search and filter form

A standalone filter form, for when you want the form somewhere other than directly above the list, such as a sidebar.

AttributeDefaultWhat it does
show_searchyesShow the search box.
show_departmentyesShow the department dropdown.
show_officeyesShow the location dropdown.
boardemptyLeave empty.

The dropdowns list only departments and locations that have an open job. The form submits to the page it sits on, using the query parameters wkjb_search, wkjb_department and wkjb_office, so put a [wkjb_jobs] list on the same page. Pagination uses wkjb_page.

[wkjb_job] — a single job

AttributeDefaultWhat it does
idemptyThe job’s Workable shortcode, the 10-character code at the end of its address, such as id="B4E3109622". Case does not matter. Empty uses the job being viewed.
show_titlenoShow the job title as a heading.
show_metayesShow department, location, employment type, remote and posting date.
show_applyyesShow the apply area: the on-site form or the Apply on Workable button.
boardemptyLeave empty.

You can find a job’s shortcode at the end of its address on your site, for example /jobs/branch-manager-b4e3109622/, or in the job’s link inside Workable.

[wkjb_apply] — the apply area on its own

AttributeDefaultWhat it does
idemptyThe job’s shortcode. Empty uses the job being viewed.
boardemptyLeave empty.

It shows the on-site application form when applications are taken on your site, and the Apply on Workable button otherwise. See On-site applications.

Styles

The plugin’s stylesheet loads on the jobs pages and on any page whose content contains a [wkjb_ shortcode or a wkjb/ block. If you print a shortcode from a theme template or a page builder, the plugin may not detect it. Force the stylesheet on with:

add_filter( 'wkjb_enqueue_frontend_assets', '__return_true' );

Your Workable jobs, live on your own site.

Real job pages, Google for Jobs markup and on-site applications — on your own domain.

Coming soon