Back to the Future

Back to the Future Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,528 downloads
Back to the Future Icon

Try plugin: Back to the Future

We'll create fresh WordPress site with Back to the Future installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Back to the Future

Allow you show Future or Scheduled Post on Single Posts.

1


0


0


0


0

updated: 9 years ago
since: 9 years ago
author: Valerio Souza

Description

  • Displays future/scheduled posts on single.php(Single Post Template)
  • Displays future/scheduled posts using shortcode
  • Enables comments for future/scheduled posts

For Developers

On your template, just simply add the string ‘post_status=future’ to your WP_Query

Example: WP_Query(‘post_status=future’);

$args = array(  'post_type' => 'post_type', 
                'posts_per_page' => '-99',
                'post_status' => array( 'publish', 'future' )
            );

            $loop = new WP_Query( $args );

            while ( $loop->have_posts() ) : $loop->the_post(); 

Read More in https://codex.wordpress.org/Class_Reference/WP_Query/

This displays all future and published posts.

License

Back to the Future is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Back to the Future is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Back to the Future. If not, see http://www.gnu.org/licenses/.