WordPress.org

Ready to get started?Download WordPress

Forums

Doing away with the attachments page entirely (4 posts)

  1. publicradio
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Select "File Url" for the Link when inserting an image.

  3. publicradio
    Member
    Posted 1 year ago #

    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.

  4. deepbevel
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags