i have the same problem :((
I just created a topic, and realized, I have the same problem as well.
Does anyone know how to fix it?
I get this too with WordPress 2.0.7 + Apache/1.3 and permalinks like /%category%/%postname%
.
With this structure, my links to attachment templates look like /category/postname/attachmentname
which WordPress seems to parse incorrectly as
name=[attachmentname]&category_name=[category/postname]
(from $wp_query
).
Links to attachment templates for files attached to Pages look like /pagename/attachmentname
and they work fine, and if I switch to a permalink structure with no %category%
label (like just `/%postname%/), all the attachment links work.
(Also: I can see that WordPress is making rewrite rules like '.../attachment/*' => index.php?attachment=*
but I’ve never seen a pretty permalink with /attachment/
in it.)
I have this problem with the category in my URLs, too. Can’t there be a fix?
Same problem here. Please fix this!