Skip to content

Commit

Permalink
Merge branch 'release/0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Dec 18, 2017
2 parents d78e23a + 4f1a48e commit 220b33a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 10 additions & 3 deletions paginated-slideshows.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 220b33a

Please sign in to comment.