fix query

This commit is contained in:
Matthias Pfefferle 2023-06-15 11:53:07 +02:00
parent 9036b644d1
commit fcf6740d36

View file

@ -380,16 +380,19 @@ class Followers {
}
// get all Followers of a ID of the WordPress User
$terms = new WP_Query(
$posts = new WP_Query(
array(
'post_type' => self::POST_TYPE,
'author' => $user_id,
'fields' => 'ids',
'meta_query' => array(
array(
'key' => 'inbox',
'compare' => 'EXISTS',
),
array(
'key' => 'user_id',
'value' => $user_id,
),
),
)
);