Skip to content

Commit

Permalink
Fix pagination bug when used on static front.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandiwise committed Aug 27, 2014
1 parent 5fac672 commit 2fbe7e3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ Yes, but no translations are available quite yet.

## Changelog

### 2.0.6
* Fix pagination bug when implementing a loop on a static homepage

### 2.0.5
* Add check on post elements when a filter menu has been added but the post doesn't have any taxonomy terms assigned (props [@crondeau](https://github.com/crondeau)).
* Add check on post elements when a filter menu has been added but the post doesn't have any taxonomy terms assigned (props [@crondeau](https://github.com/crondeau))

### 2.0.4
* Add ability to manually load public CSS when using `do_shortcode`
Expand Down
2 changes: 1 addition & 1 deletion isotope-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Isotope Posts
* Plugin URI: http://mandiwise.com/wordpress/isotope-posts/
* Description: Allows you to use Metafizzy's Isotope to display feeds of WordPress posts using simple shortcodes. Works with custom post types and custom taxonomies too.
* Version: 2.0.5
* Version: 2.0.6
* Author: Mandi Wise
* Author URI: http://mandiwise.com
* Text Domain: isotope-posts
Expand Down
6 changes: 5 additions & 1 deletion public/assets/js/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
nextSelector : ".more-iso-posts a",
itemSelector : ".iso-post",
path : function generatePageUrl(currentPageNumber) {
return (iso_vars.page_url + currentPageNumber + "/");
if ( $('body').hasClass('home') ) {
return (iso_vars.page_url + 'page/' + currentPageNumber + "/");
} else {
return (iso_vars.page_url + currentPageNumber + "/");
}
},
},
function ( newElements ) {
Expand Down
2 changes: 1 addition & 1 deletion public/class-isotope-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Isotope_Posts {
*
* @var string
*/
const VERSION = '2.0.5';
const VERSION = '2.0.6';

/**
* Unique identifier for the plugin.
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ Yes, but no translations are available quite yet.

== Changelog ==

= 2.0.6 =
* Fix pagination bug when implementing a loop on a static homepage

= 2.0.5 =
* Add check on post elements when a filter menu has been added but the post doesn't have any taxonomy terms assigned (props [@crondeau](https://github.com/crondeau)).
* Add check on post elements when a filter menu has been added but the post doesn't have any taxonomy terms assigned (props [@crondeau](https://github.com/crondeau))

= 2.0.4 =
* Add ability to manually load public CSS when using `do_shortcode`
Expand Down

0 comments on commit 2fbe7e3

Please sign in to comment.