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?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Future Date events’ is closed to new replies.