404 when viewing an attachment or paginated custom post type
|Reported by:||greenshady||Owned by:|
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:
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:
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:
This also results in a 404.
I'd venture to say that <!--nextpage--> isn't used too often, but image attachments are pretty important.