[wp-trac] [WordPress Trac] #12597: 404 when viewing an attachment or paginated custom post type

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 13 02:05:04 UTC 2010


#12597: 404 when viewing an attachment or paginated custom post type
--------------------------+-------------------------------------------------
 Reporter:  greenshady    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Post Types    |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 Has anyone gotten attachments and pagination to work for custom post
 types?  This doesn't seem to be working for me, and I think it's something
 we may have overlooked.

 Let's suppose I have a post type called movies.  The permalink structure
 looks like this for a single movie:

 {{{
 localhost/movies/good-will-hunting
 }}}

 Now, let's say this is a long article and I want to split it into multiple
 pages.  I'd use the `<!--nextpage-->` tag for this in the post editor.
 This gives me a page 2 to click on:

 {{{
 localhost/movies/good-will-hunting/2
 }}}

 I'm getting a 404 here.

 Now, let's suppose I want to use the `[gallery]` shortcode to display some
 images.  When clicking on an image, the URL is:

 {{{
 localhost/movies/good-will-hunting/robin-williams
 }}}

 This also results in a 404.

 I'd venture to say that `<!--nextpage-->` isn't used too often, but image
 attachments are pretty important.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12597>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list