404 error with pagination
-
I’ve searched for answers for this but found nothing conclusive.
I have a custom theme that is heavily modded, admin section and main site with custom menus etc
My problem is on my blog pages using pagination I get a 404 error when I go to page 2/3 etc
I have turned off all plugins and commented out the entire functions.php page. still results in the same error, checked my htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> ErrorDocument 404 /index.php?error=404 RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
I use category for blogs so my blog is at /blog/ and news at /news/
I reduced category.php to look like this
<?php $paged = (get_query_var('page')) ? get_query_var('page') : 1; $args = array( ); get_header(); ?> <ul> <?php query_posts('posts_per_page=2'); while (have_posts()) : the_post(); ?> <li><? the_title(); ?></li> <?php endwhile; wp_pagenavi(); wp_reset_postdata(); ?> </ul> <?php get_footer(); ?>
I’m using wp_pagenavi and have tried a plugin that claims to fix the issue with pagination and category pages.
no matter what I do I can’t fix this issue ??
the site can be found at
https://hw-lee.com
though the blog pages are not in the menu
you can find blog pages using category.php by going to
https://hw-lee.com/category/blog/
you will notice it changes the url to /blog/ rather than /category/blog/ I have no idea why this is happening, I don’t think it is something I have done (still does it when I turn off plugins and comment out the functions.php page) you can also try things like /t/ and it will load a page that begins with t – it’s crazy and I have no idea where it has come from 3.5 perhaps?any help is much appreciated if I had hair I would be pulling it out!.
- The topic ‘404 error with pagination’ is closed to new replies.