zzzsssdsdd
// WP_Query arguments $args = array( 'post_type' => array( 'zapis-na-kurs' ), 'nopaging' => true, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'powiazany_kurs', 'value' => '57', 'compare' => '=', 'type' => 'NUMERIC', ), array( 'key' => 'termin_powiazanego_kursu', 'value' => '1', 'compare' => '=', 'type' => 'NUMERIC', ), array( 'key' => 'status_zapisu', 'value' => 'Zaakceptowany', 'compare' => '=', 'type' => 'CHAR', ), ), ); // The Query $query = new WP_Query( $args );