Show Future or Schedule Post on Single Posts
add_filter( ‘the_posts’, ‘rt_show_future_posts’ );
function rt_show_future_posts( $posts ) {
global $wp_query, $wpdb;
if ( is_single() && $wp_query->post_count == 0 ) {
$posts = $wpdb->get_results( $wp_query->request );
}
return $posts;
}
Thanks to Suhas and Sameer.
admin 3:42 pm on October 23, 2011 Permalink | Log in to Reply
I guess you guys better use rtPanel blogs and support forum to post codes.