fix query
This commit is contained in:
parent
9036b644d1
commit
fcf6740d36
1 changed files with 5 additions and 2 deletions
|
@ -380,16 +380,19 @@ class Followers {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get all Followers of a ID of the WordPress User
|
// get all Followers of a ID of the WordPress User
|
||||||
$terms = new WP_Query(
|
$posts = new WP_Query(
|
||||||
array(
|
array(
|
||||||
'post_type' => self::POST_TYPE,
|
'post_type' => self::POST_TYPE,
|
||||||
'author' => $user_id,
|
|
||||||
'fields' => 'ids',
|
'fields' => 'ids',
|
||||||
'meta_query' => array(
|
'meta_query' => array(
|
||||||
array(
|
array(
|
||||||
'key' => 'inbox',
|
'key' => 'inbox',
|
||||||
'compare' => 'EXISTS',
|
'compare' => 'EXISTS',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'key' => 'user_id',
|
||||||
|
'value' => $user_id,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue