Skip to content

Similar Jobs

Each job post comes with its top 3 most similar jobs, calculated using a weighted matching algorithm across 14 fields including branch, category, title, location, company, and position type.

The similarJobs field contains an array of job post IDs. Use the second parameter of get_jobpost() and the_jobpost() to access fields from a specific job by ID:

<?php if (($similar_jobs = get_jobpost('similarJobs')) && is_array($similar_jobs)): ?>
<div class="similar-jobs">
<h3>Similar Positions</h3>
<?php foreach ($similar_jobs as $similar_job_id): ?>
<a href="<?php the_jobpost('permalink', $similar_job_id); ?>">
<figure>
<img src="<?php the_jobpost('logo', $similar_job_id); ?>"
alt="<?php the_jobpost('companyName', $similar_job_id); ?>" />
</figure>
<div>
<h4><?php the_jobpost('name', $similar_job_id); ?></h4>
<span><?php the_jobpost('title', $similar_job_id); ?></span>
</div>
</a>
<?php endforeach; ?>
</div>
<?php endif; ?>

The Bonsy API scores jobs against each other using a weighted algorithm across these fields:

  • Branch and branch category (primary and secondary)
  • Job title
  • City, region, country
  • Company name
  • Sector
  • Position type

The three highest-scoring matches are included with each job.