404 Error on Paged Queries
-
I was having a problem with an Older Entries link bringing up a 404 when there were actually older entries in the category.
The permalink was something like:
http://site.com/category/category-name/page/2/
I had to modify the WP class handle_404() member (wp-includes/classes.php) as follows:
if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() /* && !is_paged() */ )That “!is_paged()” didn’t make any sense to me, so I commented it out and now everything works great.
Of course I’m looking for a paged result!!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘404 Error on Paged Queries’ is closed to new replies.