diff --git a/readme.txt b/readme.txt index 9e22527..f272efd 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mike.jol Tags: series, posts, post series, post Requires at least: 3.8 Tested up to: 4.4 -Stable tag: 1.0.2 +Stable tag: 1.1.0 Setup a series of posts using a new taxonomy. Posts within a series will show an info box above the content with links to other posts in the series. @@ -52,7 +52,8 @@ The manual installation method involves downloading the plugin and uploading it == Changelog == -= 1.0.2 = += 1.1.0 = +* Scheduled post handling! Scheduled posts will contribute to your series count, and the title and scheduled date will be listed along with your other series items. * Removed bundled language files. * Added POT file. diff --git a/templates/series-box.php b/templates/series-box.php index f9e16c8..3c5fe41 100644 --- a/templates/series-box.php +++ b/templates/series-box.php @@ -6,7 +6,7 @@ } else { $series_name = esc_html( $series->name ); } - printf( __( 'This is post #%d of %d in the series “%s”', 'wp-post-series' ), $post_in_series, sizeof( $posts_in_series ), $series_name ); + printf( __( 'This is post %d of %d in the series “%s”', 'wp-post-series' ), $post_in_series, sizeof( $posts_in_series ), $series_name ); ?>

@@ -16,9 +16,9 @@
    $post_id ) : ?>
  1. - '; ?> - - '; ?> + '; ?> + Scheduled for %s', 'wp-post-series' ), get_the_title( $post_id ), get_post_time( get_option( 'date_format' ), false, $post_id ) ); ?> + '; ?>
@@ -31,4 +31,4 @@ - \ No newline at end of file + diff --git a/wp-post-series.php b/wp-post-series.php index d2365c5..edd10b2 100644 --- a/wp-post-series.php +++ b/wp-post-series.php @@ -3,7 +3,7 @@ * Plugin Name: WP Post Series * Plugin URI: https://github.com/mikejolley/wp-post-series * Description: Lets you setup a simple series of posts using taxonomies. Posts within a series will show an information box above the content automatically with links to other posts in the series and a description. - * Version: 1.0.2 + * Version: 1.1.0 * Author: Mike Jolley * Author URI: http://mikejolley.com * Requires at least: 3.8 @@ -22,7 +22,7 @@ class WP_Post_Series { */ public function __construct() { // Define constants - define( 'WP_POST_SERIES_VERSION', '1.0.2' ); + define( 'WP_POST_SERIES_VERSION', '1.1.0' ); define( 'WP_POST_SERIES_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); define( 'WP_POST_SERIES_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) ); @@ -237,6 +237,7 @@ public function add_series_to_content( $content ) { 'no_found_rows' => true, 'orderby' => 'date', 'order' => 'asc', + 'post_status' => array( 'publish', 'future' ), 'tax_query' => array( array( 'taxonomy' => 'post_series',