Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('the_posts', 'show_all_future_posts');
- function show_all_future_posts($posts)
- {
- global $wp_query, $wpdb;
- if(is_single() && $wp_query->post_count == 0)
- {
- $posts = $wpdb->get_results($wp_query->request);
- }
- return $posts;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement