zyml / project-ar2

Free WordPress magazine theme. Arras 2.0.
http://www.arrastheme.com/
GNU General Public License v2.0
78 stars 52 forks source link

WP-PageNavi compatibility #41

Closed sennewood closed 11 years ago

sennewood commented 11 years ago

There is an issue with Page Navigation, the theme is showing more pages than are available on the site.

Example: Theme shows: 1 2 3 4 5 6 7 whereas I only have enough post for: 1 2 3 4

Clicking on the extra numbers results in an error message: "Error 404 - Not Found"

zyml commented 11 years ago

Any link to the website having that problem?

sennewood commented 11 years ago

Page 5 is ok: http://nerdimpact.de/category/games/page/5/ but page 6 leads to a 404 error.

zyml commented 11 years ago

I've reimplemented the way of querying posts in main sections like the archives. You might want to download the latest build and try it out (not on the main website though, since there might be major regressions).

sennewood commented 11 years ago

Im going to to this on this weekend.

sennewood commented 11 years ago

The changes works, WP-PageNavi shows now the correct number of archive pages: http://nerdimpact.de/category/games/

Just a little bug is there: "Array ( [type] => quick [count] => 4 [title] => [use_main_query] => 1 [enabled] => 1 [persistent] => ) ", this line of code appears now ^^

zyml commented 11 years ago

Ahh careless me :P Will fix that soon.

zyml commented 11 years ago

Fixed in https://github.com/zyml/project-ar2/commit/b6e28289e9446ff6680523df238cc0e3da61c34f