I want to integrate greenhouse job board on my company's wordpress website. All greenhouse configurations are in place. There are no reliable plugins in wordpress for this task. This is how the integrated section currently looks on my website: https://hunch.in/careers/ . How do i integrate it properly and beautify it? Something like what headout has - https://www.headout.com/careers/
Is there a complete HTML code for this?
I tried using the Greenhouse plugin on wordpress that was last updated 6 years ago. The implementation is not proper through that.
I recently did an integration with a site using the Greenhouse Job Board API and using a combination of custom Gutenberg blocks with ACF, custom Wordpress rewrite rules (for our requirements), and the Greenhouse PHP Library.
The code I wrote isn't mine to freely give away, but I can summarize what I did.
Example Code To Get all Offices.
Useful Hooks
With our project, we also had a requirement to put the application and job detail on a wordpress page. This was accomplished by designating a single page our "Job Detail" page and giving it some slug (in this example
/apply/
), and then using the following actions/filters/functions:query_vars
: Register a query var to store our job ID that we establish in our rewrite rule.add_rewrite_rule()
: Register/apply/([0-9]+)?$
as a valid URL. Assign the Job ID to a query var in Wordpress for later use.template_redirect
: Enqueue the scripts Greenhouse needs for the application form and verify the Job ID from the URL is valid.the_content
: Replace the placeholder page content with info from the API.pre_get_document_title
: Replace the placeholder page title with a custom page title (the position name).This should hopefully give you a good idea of how to work with the Job Board API and how to implement it in Wordpress.