[wp-trac] [WordPress Trac] #8179: query_posts + showposts +
permalinks = 404
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 12 17:39:18 GMT 2008
#8179: query_posts + showposts + permalinks = 404
---------------------+------------------------------------------------------
Reporter: wp_guy | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.7
Severity: major | Keywords: query_posts, showposts, posts_per_page, permalink, 404
---------------------+------------------------------------------------------
So, apparently when doing something like
query_posts($query_string.'showposts=2'); in a category.php file for
example. Everything seems to work fine, but the paging doesn't, I get 404
errors on the 3rd page.[[BR]]
[[BR]]
Here is how the blog is setup:[[BR]]
- 'Blog pages show at most' is set to 5 in the settings[[BR]]
- category.php has a query_posts($query_string.'showposts=2');[[BR]]
- the category I'm browsing contains 7 posts.[[BR]]
- permalinks are set to 'month and name'[[BR]]
[[BR]]
Here is what I do:[[BR]]
1. myblog.com/category/mycategory works fine, shows 2 posts[[BR]]
2. myblog.com/category/mycategory/page/2 works fine too, shows the next 2
posts[[BR]]
3. myblog.com/category/mycategory/page/3 returns a 404 error.[[BR]]
[[BR]]
The above works just fine if I use the default permalink structure (query
string).[[BR]]
[[BR]]
I've seen this error in 2.6.3 and 2.7, haven't tried on earlier versions
--
Ticket URL: <http://trac.wordpress.org/ticket/8179>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list