Title: Ordering query by date..
Last modified: August 20, 2016

---

# Ordering query by date..

 *  [jakus](https://wordpress.org/support/users/jakus/)
 * (@jakus)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/ordering-query-by-date/)
 * Yow,
 * I am currently trying to display calendar entry posts in a sidebar, sorting by
   most recent date to least recent.. the code I am using (that I have somewhat 
   inherited) is displayed below:-
 * query_posts( array(‘orderby’ => ‘date’,’order’ => ‘DESC’,’posts_per_page’ => ‘
   5’,’category_name’ => ‘Events’));
 * while ( have_posts() ) : the_post(); ?>
 * the page to reference is: [http://bundoorasc.vic.edu.au/](http://bundoorasc.vic.edu.au/)(
   the calendar sidebar on the right)
 * please help :-S
 * _[duplicate: [http://wordpress.org/support/topic/sort-query\_posts-by-date?replies=1](http://wordpress.org/support/topic/sort-query_posts-by-date?replies=1)–
   please continue with your original topic and add more information there – closed]_

The topic ‘Ordering query by date..’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jakus](https://wordpress.org/support/users/jakus/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/ordering-query-by-date/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
