Support » Fixing WordPress » Doing away with the attachments page entirely

  • Hi, I don’t really ever use the attachments page, so I don’t bother to style it in my themes. When I go to the media library in the admin section, and click the ‘view’ link, this takes me to a jumbled, useless attachments page. I would like this to just link to the image or file I’m trying to view. Is this possible? How would I do it? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Select “File Url” for the Link when inserting an image.

    Well, I already have a line in my functions that defaults to this. However, the attachment page still exists. The public can still get to it. And if I go to my list of media, and click the ‘view’ link, it will always take me to this attachments template.

    I’m guessing the idea of having this attachments template system came with a very early version of WordPress, and it’s just sort of outlived its usefulness. Maybe I”m wrong, and people use it a lot. I don’t know. All I know is that I never use it, I don’t want to take the time to go into my themes and create templates for attachments, and I just want to obliterate them from my installation.

    There’s a plugin called ‘remove comments absolutely’ that performs a similar function for people who don’t ever use the commenting system in wordpress. It removes every trace from the front end and the admin. I was hoping there would be something similar for attachments.

    Your issue is possibly just the “view” link, may be hard coded to show images as attachments regardless of image settings.
    If you remove your attachment template you would get a 404 from that link, so you may want to try to re-code, remove or hide the “view” link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doing away with the attachments page entirely’ is closed to new replies.