• I have uploaded a “neighborhoods” image to the media library that I’m using and am linking in various places throughout the blog, but I need to create a new page with the name “Neighborhoods” and the link “/neighborhoods”. This stupid attachment page for my neighborhoods image has already taken the link by default. I understand that you can’t add media without an attachment page for some reason, which is OK. I just need to change the permalink for the attachment page so I can use “/neighborhoods” for an actual post that needs the SEO.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can add media without attaching it to anything. Not sure what you mean? Do you have a post or a page already that’s called Neighborhoods? If so edit it and change edit the permalink to something else. Then you should be able to use it for the new page you want to create.

    Thread Starter jameslaymusic

    (@jameslaymusic)

    see the second comment on this page. The attachment page is apparently an unavoidable artifact that wordpress creates without your explicit knowledge whenever you upload media using the media uploader in the dashboard. The attachment page is a special type of post that shows only the image, within a template. more here. The problem is that this attachment page uses the same permalink structure as all my other posts and has already taken the “/neighborhoods” URL. There doesn’t seem to be any way of changing that after the fact. I don’t want to remove the media and start over because I’m attaching it in several posts already.

    That’s what I’m not getting my attachment url looks like this

    mysite.com/?attachment_id=2055

    Can you post the url to the neighborhoods one you are referencing.

    If you insert media to a post or a page the image becomes “attached” to that post or page. If you edit the image properties in the post you can have it Link to different options, one being the attachment page. The attachment page url is like the above one on my installs. In the media library list view you can even detach it by clicking on detach and it reverts to linking to the media file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change attachment page url’ is closed to new replies.