Skip to content

Commit 5f7f71c

Browse files
committed
Use correct names for meta querying
Fixes #94, props @kosso
1 parent 5b66d5b commit 5f7f71c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ function rest_get_client( $type, $key ) {
1414
'post_status' => 'any',
1515
'meta_query' => array(
1616
array(
17-
'meta_key' => 'key',
18-
'meta_value' => $key,
17+
'key' => 'key',
18+
'value' => $key,
1919
),
2020
array(
21-
'meta_key' => 'type',
22-
'meta_value' => $type,
21+
'key' => 'type',
22+
'value' => $type,
2323
),
2424
),
2525
) );

0 commit comments

Comments
 (0)