Answers for "wordpress get posts by multiple authors"

PHP
0

wordpress get posts by multiple authors

// 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, ) );
Posted by: Guest on May-27-2021

Code answers related to "wordpress get posts by multiple authors"

Browse Popular Code Answers by Language