I have a custom query that runs for job searches. If I remove the
meta_query I get al jobs that match my
$search_term value. I checked to ensure the published job has the correct
value as a custom field. However, no jobs are returned.
array( 'post_type' => 'job', 's' => $search_term, 'order' => 'DSC', 'orderby' => 'date', 'posts_per_page' => get_option('posts_per_page'), 'paged' => $paged, 'meta_query' => array( array ( 'key' => 'publish_phone_number', 'value' => 'Yes' ) ) )
This runs through the