WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't know why but images uploaded to my site in posts are getting a top level permalink. So if I upload an image into a post called "Apple" then it gets an attachment page at mysite.com/apple and that is a big problem for me. How can add a path between my top level and image attachment page name?

share|improve this question
The question is more like: Why does this happen? Please write a quick plugin for that and update your post, so we can try to debug this in our own installations. – kaiser Sep 25 '12 at 1:15
up vote 0 down vote accepted

Don't link to attachment pages anywhere on your site and it won't matter what permalink they have. Search engines only see what you make public.

BTW another thing you can try is to upload only from within the post/page edit screen. That way attachments take up the parent post/page permalink. Sort of like


share|improve this answer
what's happenig is Im using a front end post form so user can submit but if they submit a image with a name of someone it takes up that top level url. So when I want to go and make wiki style pages about people they are taken by these images. – Pollux Khafra Feb 12 '12 at 10:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.