title: Wordpress - getting posts from multiple authors?
body: <p>Using a third party plugin that allows users to follow each other, we can retrieve the users being followed like so (commented):-</p>
  
  <pre><code>&lt;?php if (have_posts()) : ?&gt;
          &lt;?php global $userpro_social;
  
          $following = $userpro_social-&gt;following( get_current_user_id() ); //get users the current user is following
          print_r($following) ?&gt; // print the array so we can see who we're following
  
  
          &lt;?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ?&gt;     
          &lt;?php query_posts( array( 'author'=&gt; ??? , 'paged' =&gt; $paged, ) ); ?&gt;      
  
          &lt;?php while ( have_posts() ) : the_post() ?&gt;
  
  
              &lt;?php if ( has_post_format( 'video' )) {
                      get_template_part( 'video-post' );
                  }elseif ( has_post_format( 'image' )) {
                      get_template_part( 'image-post' );
                  } else {
                     get_template_part( 'standard-post' );
                  }
  
              ?&gt;
  
          &lt;?php endwhile;?&gt;
  
          &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>So this would output something like this</p>
  
  <p>Array ( [24] => 1 [1] => 1 )</p>
  
  <p>ie, we're following users with the ID of 1 and 24, simple enough?</p>
  
  <p>The part I'm lost on is this</p>
  
  <pre><code>&lt;?php query_posts( array( 'author'=&gt; ??? , 'paged' =&gt; $paged, ) ); ?&gt;
  </code></pre>
  
  <p>How do I actually output posts from those users, it's already stored in the array so I think it should be easy enough, but I just can't figure it out even after reading the codex.</p>