title: Storing values in an array with wordpress
body: <p>So I am trying to create a wordpress plugin that stores all the dates of posts written in a certain month. So if there were posts published on the 10th, 12th and 18th of this month, I want to store those dates '10', '12' and '18' in the array <code>$stack[]</code>. Im new to php and so I can't figure out why this isn't storing the dates in the array:</p>
  
  <pre><code>// The Query
  $themonth = date( 'n', current_time( 'timestamp' ) );
  query_posts('cat=4&amp;month=' . $themonth );
  // The Loop
  $stack = array();
  while ( have_posts() ) : the_post(); 
  $stack[] = the_time('j');
  endwhile;
  </code></pre>
  
  <p>Any ideas?</p>