WP Job Manager – hide expired listings

mgibbs189

{{gist file=”query-arguments.php” lang=”php”}}
<?php
return array(
‘post_type’ => ‘job_listing’,
‘post_status’ => ‘publish’,
‘orderby’ => array( ‘menu_order’ => ‘ASC’, ‘date’ => ‘DESC’ ),
‘order’ => ‘ASC’,
‘meta_query’ => array(
array(
‘key’ => ‘_job_expires’,
‘value’ => date( ‘Y-m-d’ ),
‘compare’ => ‘>’,
)
)
);
{{/gist}}