[wp-trac] [WordPress Trac] #16168: 404 error with pagination on custom taxonomy page
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 27 20:28:04 UTC 2011
#16168: 404 error with pagination on custom taxonomy page
---------------------------------------+-----------------------
Reporter: kamiyeye | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Permalinks | Version: 3.2.1
Severity: major | Resolution:
Keywords: 2nd-opinion needs-testing |
---------------------------------------+-----------------------
Changes (by inbytesinc):
* keywords: => 2nd-opinion needs-testing
* resolution: invalid =>
* status: closed => reopened
* component: General => Permalinks
* version: 3.0.4 => 3.2.1
Comment:
My 2 cents, using WP_Query as dd32 suggested:
1. Done a fresh install of WordPress 3.2.1 (on Windows Server 2008 & IIS7)
in '''www.mydomain.com/web'''. Using TwentyEleven Theme.
2. Set up Permalinks like this: ''Month and Name''.
3. Created Taxonomy "Genre" in '''functions.php''' as stated here:
http://codex.wordpress.org/Function_Reference/register_taxonomy. Created
Custom Post Type "Books" like this:
http://codex.wordpress.org/Function_Reference/register_post_type
4. Updated Permalinks, for Flushing Rewrite.
5. Inserted Genre: ''Fiction''. Inserted Books: ''The Lord of The Rings''
and ''The Hobbit''. Of course, assigned genre ''Fiction'' to both.
6. Made a copy of the '''page.php''' file (in the TwentyEleven theme
folder) and renamed as '''taxonomy-genre.php'''. Programmed the loop very
similar to the example showed on this page:
http://codex.wordpress.org/Function_Reference/wp_reset_postdata.
'''NOTE''': See the attached file.
7. Browsed to: '''www.mydomain.com/web/genre/fiction/'''. Everything went
fine.
8. Clicked on "Previous Links" link:
'''www.mydomain.com/web/genre/fiction/page/2/''' --> '''ERROR 404'''.
9. Using the code in attached file "No_WPQuery.txt" (default Loop) +
[Admin Zone / Settings / Reading / Blog pages show at most --> 1], and
everything will work fine.
10. Workaround using WP_Query: http://themeforest.net/forums/thread
/wordpress-custom-page-type-taxonomy-pagination/43010
11. Other users that think it's a bug:
http://wordpress.stackexchange.com/questions/21181/custom-post-type-
archive-page-set-posts-per-page-paginate
http://wordpress.stackexchange.com/questions/18853/custom-post-type-
archive-404s-with-paginate-links
Please, if you agree it's a bug, set this to fix queue.
THANKS.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16168#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list