From fcf6740d36272cfee4dea01c4fe1e753b088bab0 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 15 Jun 2023 11:53:07 +0200 Subject: [PATCH] fix query --- includes/collection/class-followers.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/collection/class-followers.php b/includes/collection/class-followers.php index 940e9f2..f652d24 100644 --- a/includes/collection/class-followers.php +++ b/includes/collection/class-followers.php @@ -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, + ), ), ) );