'OR'); foreach ($authors as $author_id) { $meta_query[] = array( 'key' => 'authors', 'value' => '"' . $author_id . '"', // Recherche la valeur sérialisée 'compare' => 'LIKE' ); } $authorsLastPosts = get_posts(array( 'post_type' => $isArticle ? 'articles' : 'revues', 'posts_per_page' => 6, 'orderby' => 'date', 'order' => 'DESC', 'meta_query' => $meta_query, )); if (empty($authorsLastPosts) || count($authorsLastPosts) < 2) return; ?>