title: How can I get 10 posts from a particular category (myCategory) in wordpress
body: <ol>
  <li><p>In Wordpress I need to get the posts form myCategory as blog post (with the meta data example date, posted by etc)- this is working fine but currently bringing back all the post from every category </p>
  
  <pre><code>        switch ($page_layout) {
  
              case "layout-sidebar-single-left": 
                      echo '&lt;div class="row fixed"&gt;';
                          echo '&lt;div class="col-220 no-print"&gt;';
                              ewf_setSection('zone-sidebar');
                              if ( !function_exists('dynamic_sidebar')  || !dynamic_sidebar('sidebar-page') );
                          echo '&lt;/div&gt;';
  
                          echo '&lt;div class="col-700 last"&gt;';
  
  
                                  $postTitle = '&lt;h3&gt;&lt;a href="' . get_permalink() . '" rel="bookmark"&gt;'.get_the_title().'&lt;/a&gt;&lt;/h3&gt;' ;  
                                  $readMore = '&lt;p class="text-right"&gt;&lt;a href="'.get_permalink().'"&gt;'.__('Read More', EWF_SETUP_THEME_DOMAIN).'&lt;/a&gt;&lt;/p&gt;';
                                  query_posts('category_name=media&amp;showposts=2');
                                  if (have_posts()) while (have_posts()) : the_post();    
                                      echo $postTitle;
                                      echo the_content();
                                      echo $readMore;
                                  endwhile; 
  
  
  
                          echo '&lt;/div&gt;';
                      echo '&lt;/div&gt;';
  
              break;
  </code></pre></li>
  </ol>