title: Display posts from given category
body: <p>I want to display posts from the given category. But I would like to give this category in page editor.</p>
  
  <pre><code>    $wpbp = new WP_Query(array("category_name" =&gt; 'music', "posts_per_page" =&gt; 50));
  </code></pre>
  
  <p>Above snippet gives me all the posts from music. But instead of giving category slug, I would like to use a variable.Please see below</p>
  
  <pre><code>    $wpbp = new WP_Query(array("category_name" =&gt; '$category', "posts_per_page" =&gt; 50));
  </code></pre>
  
  <p>Right now the shortcode that I give is <code>[display-posts]</code> but I would like it to be like this <code>[display-posts category='music']</code></p>
  
  <p>How to make this work? Thanks.</p>