📌  相关文章
📜  wordpress 获取多个作者的帖子 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.686000             🧑  作者: Mango

代码示例1
// Where the authors' ids are "1, 2, 3, 4", etc
get_posts([ 'author__in'=> [1, 2, 3, 4], 'post_type' => 'page', 'numberposts' => -1 ]);

// Original SO answer
query_posts( array( 'author__in'=> array_keys($following) , 'paged' => $paged, ) );