Publication on your Wordpress website

Principle:

To publish Jobaffinity Jobs on your Wordpress site, you need to create a dedicated Wordpress user with author rights. To create a page containing the list of jobs, you need to create a Wordpress loop filtering the articles for the author assigned to us.

Explanation:

Here are the steps to follow:

  • In your Wordpress administration you will create a user for Jobaffinity and you will give him at least Author rights.
  • We will publish the job offers in the form of Wordpress posts using the XML/RPC protocol (this publication mode is activated as standard in your Wordpress installation). You should check that you have not installed a plugin that blocks this publication mode.
  • If you don't publish blog posts on your site (news for example) you can use the basic settings of your Wordpress and your Jobs page will be your Articles page. There's nothing else to do.
  • If you already use the Articles page, you will create a new template for the jobs page.
  • This template will only filter posts published by Jobaffinity. To do this, you need to create a loop using a query_post and filter the posts made by the Joaffinity user. For example, if our user has the id n°2, you define your query with the filter : query_posts('author=2') before launching the loop with a while ( have_posts() ) : the_post()).

For information, you can find Wordpress documentation at this address: https://developer.wordpress.org/

Posts are published as wordpress articles with custom_fields. Here is the list of custom values that are passed to wordpress when published:

  • job_location (job location)
  • job_entity (the recruiting entity, often the name of the client in practice mode)
  • job_contract_type (the type of contract)
  • job_postalcode (the postcode of the job)
  • job_organisation (the recruiting organisation, has only one organisation to date)
  • job_link (the job application link, also present in the body of the message, can be hidden from the css)

The job title is the name of the "Post", and the date is the date of this "Post".

It is possible to set up custom_fields so that you can "categorise" your posts. But this uses custom_fields and not categories. You can do this directly in PHP or by finding a wordpress plugin that allows you to filter by custom_fields.

Here's an example of a wordpress integration client:http://macarons-recrutement.com/offres-demploi/

End of configuration in Jobaffinity:

Once this work is complete, you need to go to Jobaffinity in the [APPS/Wordpress] menu (https://jobaffinity.fr/apps/wordpress) and then click on configure to activate Worpress publishing. If you do not have the "configure" button, you will need to ask an administrator in your organisation to do this.

Then go to the ADMIN/Publications menu to create a new source corresponding to your Wordpress website.