Resume
// WP_Query arguments
$args = array(
'post_type' => array( 'resume' ),
'post_status' => array( 'publish' ),
's' => 'Rajib hawlader',
'nopaging' => false,
'posts_per_page' => '20',
'order' => 'ASC',
'orderby' => 'title',
'tax_query' => array(
'relation' => 'OR',
array(
'terms' => 'resume_skill',
'field' => 'name',
),
),
'meta_query' => array(
'relation' => 'OR',
array(
'key' => '_candidate_title',
'value' => 'asd',
'compare' => 'LIKE',
),
array(
'key' => '_candidate_location',
'value' => 'bd',
'compare' => 'LIKE',
),
array(
'key' => '_career_industry',
'value' => 'abc, bcd',
'compare' => 'IN',
),
array(
'key' => '_resume_keyword',
'value' => 'asd',
'compare' => 'LIKE',
),
),
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();