Skip to content

Template Functions Reference

Check if job posts exist and advance the loop iterator.

have_jobposts( $count, $offset );
ParameterTypeRequiredDescription
$countintNoMaximum number of jobs to loop through
$offsetintNoNumber of jobs to skip

Returns bool.

Advance the loop iterator and/or echo a field value.

the_jobpost( $field, $job_post_id );
ParameterTypeRequiredDescription
$fieldstringNoField name to echo
$job_post_idintNoSpecific job post ID

Return a field value without echoing.

get_jobpost( $field, $job_post_id );
ParameterTypeRequiredDescription
$fieldstringYesField name to retrieve
$job_post_idintNoSpecific job post ID. Defaults to current post.

Returns the field value or false if not found.

Same as have_jobposts() but iterates expired jobs.

have_expired_jobposts( $count );
ParameterTypeRequiredDescription
$countintNoMaximum number of expired jobs

Returns bool.

Reset the loop iterator. Required when using multiple loops on the same page.

reset_jobpost_loop();

Get the count of job posts.

get_jobpost_count( $filtered );
ParameterTypeRequiredDescription
$filteredboolNotrue (default) returns count based on active filters. false returns total count.

Returns int.

Get the total number of open positions (sum of all numberOfPositions values).

get_jobpost_position_count( $filtered );
ParameterTypeRequiredDescription
$filteredboolNotrue (default) returns filtered count. false returns total.

Returns int.


Check if nested data exists and advance the nested iterator.

have_jobpost_object( $name );
ParameterTypeRequiredDescription
$namestringYesThe nested data name (e.g., 'contacts')

Returns bool.

Advance the nested iterator and/or echo a field value.

the_jobpost_object( $field );
ParameterTypeRequiredDescription
$fieldstringNoField name to echo

Return a nested field value without echoing.

get_jobpost_object( $field );
ParameterTypeRequiredDescription
$fieldstringYesField name to retrieve

Returns the value or false.


Get all distinct values for a field across all job posts.

get_jobpost_filters( $field, $reduce_by_filter );
ParameterTypeRequiredDescription
$fieldstringYesField name
$reduce_by_filterboolNoIf true, reduce results based on active filters. Default: false.

Returns array of distinct values.

Generate a URL that toggles a filter value on or off.

get_jobpost_filter_url( $field, $value );
ParameterTypeRequiredDescription
$fieldstringYesField name
$valuestringYesValue to toggle

Returns string URL.

Count how many jobs match a specific filter value.

get_jobpost_filter_count( $field, $value );
ParameterTypeRequiredDescription
$fieldstringYesField name
$valuestringYesValue to count

Returns int.

Check if a filter is currently active.

has_jobpost_filter( $field, $value );
ParameterTypeRequiredDescription
$fieldstringYesField name
$valuestringNoIf set, checks for this specific value

Returns bool.


Check if a single job post page is currently loaded.

single_job_post_loaded();

Returns bool.

Get Google Maps embed HTML for the current job’s location.

job_post_map( $width, $height );
ParameterTypeRequiredDescription
$widthintNoMap width in pixels
$heightintNoMap height in pixels

Returns string (HTML).