Title: Future Date events
Last modified: August 30, 2016

---

# Future Date events

 *  Resolved [Bob](https://wordpress.org/support/users/jbkdevries/)
 * (@jbkdevries)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/future-date-events/)
 * I’m trying to show events with a date in the future, and I’ve read that the following
   code enables this:
 *     ```
       <?php
       add_filter( 'wprss_display_feed_items_query', 'my_show_future_posts', 10, 2 );
       function my_show_future_posts( $args, $settings ) {
           // $args['order'] = 'ASC'; // Reverses the sort order
           $args['post_status'] = array('publish', 'future');
   
           return $args;
       }
       ?>
       ```
   
 * However, when I add that to the functions.php file in my template folder I get
   a blank screen.
 * Where do I add this to properly enable this feature?
 * [https://wordpress.org/plugins/wp-rss-aggregator/](https://wordpress.org/plugins/wp-rss-aggregator/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mark Zahra](https://wordpress.org/support/users/markzahra/)
 * (@markzahra)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/future-date-events/#post-6244185)
 * Hi Bob,
 * It seems you haven’t copied the filter 100% correctly. Can you please try it 
   again as follows:
 *     ```
       add_filter( 'wprss_display_feed_items_query', 'my_show_future_stories', 10, 2 );
       function my_show_future_stories( $args, $settings ) {
           if ($args['meta_query']['wprss_feed_id'] === 100) {
               $args['order'] = 'ASC';
               $args['post_status'] = array('published', 'future');
           }
   
           return $args;
       }
       ```
   
 * Do note that this will show both past and future feed items. Are you currently
   using any of the premium add-ons or just the core WP RSS Aggregator?
 *  Thread Starter [Bob](https://wordpress.org/support/users/jbkdevries/)
 * (@jbkdevries)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/future-date-events/#post-6244228)
 * Hi Markzahra,
    Thanks for the reply. Apologies for the late response.
 * I’ve added the code you linked to the functions.php file. I don’t get a white
   page anymore, so that’s a plus. I’m now waiting for an updated RSS feed to test
   it.
 * Edit: I do indeed have several premium plugins: Excerpts & Thumbnails and Keyword
   Filtering.
 * Will update later.
 *  Plugin Author [Mark Zahra](https://wordpress.org/support/users/markzahra/)
 * (@markzahra)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/future-date-events/#post-6244236)
 * Thanks Bob, glad to hear that.
 * Hope it’s working fine now. Also, since you’ve got premium add-ons please contact
   us through a [premium support ticket](http://www.wprssaggregator.com/contact/).
   This forum is for the free core version of WP RSS Aggregator only.
 *  Thread Starter [Bob](https://wordpress.org/support/users/jbkdevries/)
 * (@jbkdevries)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/future-date-events/#post-6244238)
 * Continuing through support ticket.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Future Date events’ is closed to new replies.

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [published](https://wordpress.org/support/topic-tag/published/)

 * 4 replies
 * 2 participants
 * Last reply from: [Bob](https://wordpress.org/support/users/jbkdevries/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/future-date-events/#post-6244238)
 * Status: resolved