diff --git a/CHANGES.md b/CHANGES.md index da4ee01..19c2e37 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ ### Changelog +#### 0.2.1 (12/18/17) +* Fixed: Output function breaks if Posts 2 Posts is not active. + #### 0.2.0 (12/18/17) * Fixed: ACF field group not registered correctly. diff --git a/README.md b/README.md index 23d08d3..770d63c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Paginated Slideshows Create paginated slideshows that can easily be attached to one or more posts. + +Requires Advanced Custom Fields Pro and Posts 2 Posts plugins. diff --git a/paginated-slideshows.php b/paginated-slideshows.php index a904400..d3a3b7b 100644 --- a/paginated-slideshows.php +++ b/paginated-slideshows.php @@ -3,7 +3,7 @@ * Plugin Name: Paginated Slideshows * Plugin URI: https://github.com/bizbudding/paginated-slideshows * Description: Create paginated slideshows that can easily be attached to one or more posts. - * Version: 0.2.0 + * Version: 0.2.1 * * Author: BizBudding, Mike Hemberger * Author URI: https://bizbudding.com @@ -91,7 +91,7 @@ private function setup_constants() { // Plugin version. if ( ! defined( 'PAGINATED_SLIDESHOWS_VERSION' ) ) { - define( 'PAGINATED_SLIDESHOWS_VERSION', '0.2.0' ); + define( 'PAGINATED_SLIDESHOWS_VERSION', '0.2.1' ); } // Plugin Folder Path. @@ -597,10 +597,17 @@ public function inline_styles() { /** * Get a post's connected slideshow(s) - * and + * and display them. + * + * @return void */ public function create_pages( $post ) { + // Bail if Posts 2 Posts is not active. + if ( ! function_exists( 'p2p_type' ) ) { + return; + } + // Bail if not on a single post. if ( ! is_singular( 'post' ) ) { return;