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.
When you set a job as “Featured”, it will be “sticky”, meaning it is displayed before any non-featured jobs.
To prevent this behaviour, and force jobs to be ordered by date only, you can add the following code snippet to your theme’s functions.php file:
add_filter ( 'get_job_listings_query_args', 'unstick_featured_jobs' );
function unstick_featured_jobs( $query_args ) {
$query_args['orderby'] = 'date';
$query_args['order'] = 'DESC';
return $query_args;
}