Template tags

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

Used for outputting job information in the loop, the plugin includes several template tags listed below. Most tags can take a $post parameter which lets you specify the job ID/job post object you wish to show data for, if you don’t want to use it in the loop.

the_job_status( $post = null )

Outputs the Job’s status. Uses get_the_job_status() which returns the status instead of outputting it.

is_position_filled( $post = null )

Returns true or false depending on whether or not the job position has been filled.

the_job_permalink( $post = null )

Outputs the job permalink to the single job listing. Uses get_the_job_permalink() which returns it instead.

get_the_job_application_method( $post = null )

Returns the application method as an object containing the type (email or url) and (for email apply links) raw_email, email, subject.

wpjm_the_job_types( $post = null )

Outputs the job type, e.g. “Full-time”. Uses wpjm_get_the_job_types() which returns the job_type term object.

wpjm_get_the_employment_types( $post = null )

Returns the employment types assigned to the job listing’s job types.

the_job_location( $map_link = true, $post = null )

Outputs the job’s location. If the first parameter is true, the location will be linked to a google map. Uses get_the_job_location() which returns the location string.

the_company_logo( $size = 'thumbnail', $default = null, $post = null )

Outputs the company logo, by default using the thumbnail size. The default logo (when one is not present) can be passed as a URL in the second argument. Uses get_the_company_logo() which returns the logo if present.

the_company_name( $before = '', $after = '', $echo = true, $post = null )

Outputs the company name, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_the_company_name() which returns the name only.

wpjm_the_job_description( $post = null )

Outputs the job description.

wpjm_get_the_job_description( $post = null )

Returns the job description.

get_the_company_website( $post = null )

Returns the company website url.

the_company_tagline( $before = '', $after = '', $echo = true, $post = null )

Outputs the company tagline, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_the_company_tagline() which returns the tagline only.

the_company_twitter( $before = '', $after = '', $echo = true, $post = null )

Outputs the company twitter link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_the_company_twitter() which returns the twitter name only.

Themes Documentation