Title: events calendar plugin
Last modified: August 20, 2016

---

# events calendar plugin

 *  [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/events-calendar-plugin/)
 * I can’t seem to filter ascending or descending the order of events displayed.
   No idea what I’m doing wrong here. The only part of this that seems to work is
   that the number of items changes if I change the post per page item. Here is 
   my code:
 *     ```
       <?php global $post;
       	$all_events = tribe_get_events(array(
       	'posts_per_page'=>-4,
       	'eventDisplay'=>'upcoming',
       	'order' => 'DESC'
       	));
   
       	foreach($all_events as $post) {
       	setup_postdata($post);
       	?>
       ```
   

The topic ‘events calendar plugin’ is closed to new replies.

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [descending](https://wordpress.org/support/topic-tag/descending/)
 * [events](https://wordpress.org/support/topic-tag/events/)
 * [order](https://wordpress.org/support/topic-tag/order/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [lee718](https://wordpress.org/support/users/lee718/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/events-calendar-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
