Easy Job Sync Documentation

Back to the plugin

Shortcodes

Job Filter

The following shortcodes can be used for the job filters on the page where the job list is also embedded:

Filter by category:

[ejs_CategoryFilter]
ParameterTypStandardDescription
default textstringAllWhat the option for all entries should be called.

Filter by custom metafield:

[ejs_CustomMetaFilter]
ParameterTypStandardDescription
meta keystringnullThe Meta key to be used by the job.

Filter by employment type:

[ejs_EmploymentTypeFilter]
ParameterTypStandardDescription
default textstringAllWhat the option for all entries should be called.

Filter by location

[ejs_LocationFilter]
ParameterTypStandardDescription
placeholderstringPleaseWhat the placeholder for the input field should be called.
radiusstring5kmWhich radius should still contain valid results. Available inputs: „1km“, „3km“, „5km“, „10km“, „15km“, „30km“, „50km“, „100km“

Filter by Name:

[ejs_NameFilter]
ParameterTypStandardDescription
placeholderstringJob titleWhat the placeholder for the input field should be called.

Reset all filters

[ejs_ResetLink]
ParameterTypStandardDescription
link textstring„reset filters“Text for the reset link in the frontend

Filter button

Freely positionable button to submit all filters that are integrated on the current page.

[ejs_SubmitButton]
ParameterTypStandardDescription
buttontextstring„Search“Submit

Order Filter

Sort the list of jobs

ejs_OrderFilter
ParameterTypStandardDescription
Order bystringTitleThe field to sort by.

Options
– title
– date
orderstringASCThe direction in which to sort.

Options
– ASC
– DESCRIPTION

Custom Dropdown Filter

Created a custom drop-down field to sort the job list.

Custom Drop-down Filter
ParameterTypStandardDescription
KeystringThe field to filter by.
default textstringAllWhat the option for all entries should be called.

Job List

Represents the list of jobs.

[ejs_joblist]
ParameterTypStandardDescription
posts_per_pagenumber-1Number of jobs displayed
-1 = all jobs
Scroll to jobsboolFalseWhether to automatically scroll to the job list when loading jobs
display_modestringList„"List" or "Grid" view of the jobs
provider_idstringnullIf you enter a provider ID here (from the admin page), only jobs from the selected provider will be displayed

Pre-filtered job list

Displays a pre-filtered and pre-rendered list of jobs.

[ejs_prefiltered_joblist]
ParameterTypStandardDescription
posts_per_pagenumber-1Number of jobs displayed
-1 = all jobs
meta_keystringnull (type)If only „meta_key“ is specified, the system checks whether the meta field exists. If „meta_value“ is also specified, it is used as the key.
meta_valuestringnull (type)Jobs are filtered whether they have a meta field with the same value.
compare_typestringis equal toHow the comparison should be. Allowed values: „equals“, „not_equals“, „contains“, „not_contains“

Display specific fields

Returns the value of the specified field.

[ejs_custom_field field="freitextfeld1" provider="CovetoProvider"]
ParameterTypStandardDescription
fieldstringField name (from the raw jobs interface)
SupplierstringOne of the following 7 strings is possible:
CovetoProvider,
SoftgardenProvider,
HR4YOUProvider,
PersonioProvider,
DatabitesProvider,
LocalProvider,
RecruiteeProvider

Link to the job

Returns the permalink for the current job in the loop.

[ejs_joblink]

Applicant Link

Displays a link to apply.

[ejs_application_link type="button" text="Apply Now"]
ParameterTypStandardDescription
TypestringlinkEither „link“ or „button“
textstringApply NowThe text of the link or button

Job Salary

Output the salary for the job

[ejs_job_salary tag="div"]
ParameterTypStandardDescription
tagstringdivisionHTML element where the salary is displayed

Number of jobs

Indicates the current number of jobs. If used on the job list, the number adjusts when the filter changes.

[ejs_job_count]

Contact person image

Displays a placeholder image for the contact person

[ejs_job_contact_person_image]

Extension

Example 1: Filter to load the Coveto contact person image from the WordPress media library using the name as a mapping
add_filter("ejs_job_contact_person_image", function(ejs_Image $image, Job $job){

	$contactPersonFirstName = strtolower($job->getRawField("aa_ansprechpartner->nachname"));
	$contactPersonLastName = strtolower($job->getRawField("aa_ansprechpartner->vorname"));

		$query = new WP_Query([
		'post_type'      => 'attachment', 
		'post_status'    => 'inherit',
		'posts_per_page' => -1,          
	]);

	if ($query->have_posts()) {
		foreach ($query->posts as $media_post) {
			$title = strtolower($media_post->post_title);

			if (str_contains($title, $contactPersonFirstName) && str_contains($title, $contactPersonLastName)){

				$image->setURL(wp_get_attachment_url( $media_post->ID ));
				return $image;
			}
		}
	}

	wp_reset_postdata();

	return $image;
}, 10, 2);
Example 2: Loading an external resource defined in the Coveto free-text field_2 with a changed image size.
add_filter("ejs_job_contact_person_image", function($image,$job) {
	$url = $job->getRawField("freitextfeld_2");
	$image->setURL($url);
	$image->setHeightInPixels(200);
	$image->setWidthInPixels(200);
	return $image;
},10,2);