diff --git a/classes/class-ep-query.php b/classes/class-ep-query.php index 7b8883db92..badd7d69af 100644 --- a/classes/class-ep-query.php +++ b/classes/class-ep-query.php @@ -111,6 +111,12 @@ private function format_args( $args ) { } } + if ( ! empty( $args['search_meta'] ) ) { + foreach ( $args['search_meta'] as $key ) { + $search_fields[] = 'post_meta.' . $key; + } + } + $query = array( 'bool' => array( 'must' => array(