Do you use WordPress for your career site? Good news: JobAffinity can automatically publish your job offers there. Here is how to set it up, step-by-step.
1. Create a dedicated user in WordPress
In your WordPress admin dashboard:
Go to Users > Add New.
Create a new user (e.g., jobaffinity).
Assign the role of Author (or higher). This account allows JobAffinity to post job ads as "Posts" on your site.
2. Ensure posting is authorized
JobAffinity uses the XML-RPC protocol, which is enabled by default in WordPress. Make sure that no security plugins are blocking this protocol. If in doubt, temporarily disable security plugins to test the connection.
3. Displaying offers on your site
Case 1: You don't use the WordPress "Posts" page The published offers will automatically appear on this page. No further action is needed.
Case 2: You already use this page for other content (e.g., a Blog) You should create a specific page for job offers using a custom WordPress template. This template must filter only the posts created by the JobAffinity user.
Example code snippet:
<?php query_posts('author=2'); // Replace 2 with the actual JobAffinity User ID while ( have_posts() ) : the_post(); // Format your job offer display here endwhile; ?>4. Data transmitted during publication
Each offer is published as a WordPress post with Custom Fields that you can use to filter or organize the display:
job_location: Job locationjob_contract_type: Contract typejob_entity: Recruiting entity name (useful for agencies)job_postalcode: Zip codejob_organisation: Your organization's namejob_link: Link to the application form (also included in the job description text)
5. Integration Example
View a live example of a WordPress site connected to JobAffinity: macarons-recrutement.com/offres-demploi
6. Configure the posting in JobAffinity
Go to Admin > Postings (Publications) in JobAffinity.
Click the "+" button to add a new source.
Choose WordPress.
Fill in the following fields:
Name: Your site's name (e.g., "Career Site").
URL: Your WordPress site's address.
Username and Password: Use the credentials of the WordPress user created in Step 1.
Click Save.
7. Test the publication
To verify the setup, publish a job from JobAffinity and select your WordPress source. The offer should appear automatically on your site.
