arstropica
Member
Posted 8 months ago #
I noticed that navigation on paginated posts was not appearing so I modified the basebar class initialization method from:
global $wp_query, $pbOptions; //line 46
//
//
$this->max_page = is_singular() ? $numpages : $max_page; // line 49
to:
global $wp_query, $pbOptions, $numpages; //line 46
//
//
$this->max_page = is_singular() ? $numpages : $max_page; // line 49
http://wordpress.org/extend/plugins/pagebar/
elizzz
Member
Posted 8 months ago #
I had often run into the same thing.. To fix it, I simply use wp-nav-pagi plugin... it's simple and nice!
I'm going to fix this in the plugins ASAP. Thanks for the hint!
@arstropica: What version of WordPress and pagebar are you using? I can't reproduce the error with WP 3.2 and pagebar 2.59.
@elizz: wp-pagenavi is a good solution if you want to have an advanced pagination for the blog page but it doesn't contain an advanced pagination for pages and comments.
arstropica
Member
Posted 8 months ago #
I used the same settings but with a custom theme that must be modifying the $wp_query object. Once I reverted to Twenty Eleven, the plugin ran flawlessly without my modifications.
Currently I'm planning to do a new major release of pagebar which takes advantage of some new functions in WordPress. This release will take some time since I also want to include some new features for inexperienced and for advanced users (don't expect it this year).