title: Can I use WP_Query to return pages by category?
body: <p>I'm creating a WordPress site for a theater. I have several performer pages featuring performers with images, bios, etc. I would like to feature one performer on the homepage as a "Featured Performer." I created a category in pages called "Featured-HP." I am trying to return just this one performer to use on the homepage. It is not working at all. Can this even be done?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$args = array(
  'post_type'         =&gt;  'page',
  'category'          =&gt;  231,
  'posts_per_page'    =&gt;  -1
  );
  
  // The Query
  $featured_performer = new WP_Query( $args );
  </code></pre>
  
  <p>Then to display it...</p>
  
  <pre><code>while ( $featured_performer-&gt;have_posts() ) :
    $featured_performer-&gt;the_post();
    // CODE HERE TO SHOW IMAGE AND NAME
  endwhile;
  </code></pre>
  
  <p>Nothing gets returned, though, so, I haven't even gotten to the image and name. Any help or advice would be appreciated. Thanks!</p>