<?php // Query Args $args = array( 'meta_key' => 'cp_job', 'meta_value' => 'Buyer' ); // The Query $the_query = new WP_Query( $args ); // The Loop if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); // Do things with the post data } } else { // no posts found } /* Restore original Post Data */ wp_reset_postdata();
There are currently 1 users browsing this thread. (0 members and 1 guests)