title: Display Wordpress posts in Chronological (Ascending) Order
body: <p>By default Wordpress shows all posts in reverse chronological order (with the newest post first).</p>
  
  <p>I would like to display all of my wordpress posts in chronological order (with the oldest posts shown first).</p>
  
  <p>I am trying to use a custom loop query to do this, however I cannot get it to work. What am I missing here?</p>
  
  <pre><code>&lt;?php query_posts(array('orderby'=&gt;'date','order'=&gt;'ASC'));
  
      if ( have_posts() ) :
      while ( have_posts() ) : the_post(); ?&gt;
  
  
      &lt;div class="postTitle"&gt;&lt;?php the_title(); ?&gt;&lt;/div&gt;
      &lt;div class="postContent"&gt;&lt;?php the_content(); ?&gt;&lt;/div&gt;
  
  
  
      &lt;?php endwhile; endif;
          wp_reset_query();
      ?&gt;
  </code></pre>
  
  <p>I thought this would be quite simple, although everything I have found to try I also cannot make work. thanks!</p>