Attended tickets query
// WP_Query arguments $args = array( 'post_type' => array( 'event_ticket' ), 'post_status' => array( 'publish' ), 'meta_query' => array( array( 'key' => '_product_id', 'value' => '1,2,3', 'compare' => 'IN', ), array( 'key' => '_attended', 'value' => 'yes', ), ), ); // The Query $query = new WP_Query( $args );