PHP and htaccess Subcategories Pagination
-
Hello,
I’m trying to make Subcategories Paginate when viewing the Parent Category using an SQL query solution I found here: http://wordpress.org/support/topic/336324?replies=16#post-1297117. Only problem is there are numerous errors with it, most of which I’ve ironed out, but the paginating isn’t working when using permalinks, which I can’t figure out. The solution works though if I’m not using permalinks and using default.
I keep getting a 404 error, here’s the code for my htaccess file:
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule lyrics/a/page/(.*)$ lyrics/a/?current_page=$1 [L]
</ifmodule>You can view the complete code of the paginate.php class here: http://wordpress.pastebin.com/f47b9c4d4.
You can view the complete code that I’ve placed in the category.php file here: http://wordpress.pastebin.com/f5efe03de. The code that determines what the paginate links should look like is around line 240.
I’ve also noticed that http://www.songlyricsx.com/lyrics/a/page/2 exists (clicking previous though the links look wierd), however the links for the pagination shows http://www.songlyricsx.com/lyrics/a/2 which does not exist and should.
Thanks for the help!
The topic ‘PHP and htaccess Subcategories Pagination’ is closed to new replies.