Tutorial

How to Edit an Attachment in WordPress

An attachment contains information about a file uploaded to the Media Library.

Background

WordPress creates a new attachment each time we upload a file to the Media Library. The attachment contains metadata pulled from the file, such as file name and file size. It also stores complementary attributes, like caption and description.

Steps

Follow these steps to edit an attachment in WordPress.

Step 1: Navigate to the Media Library.

Step 2: Click Edit in the action links for the target attachment.

Step 3: The Edit Media screen is shown. Change each field as desired and click the Update button.

Action links for an item in the Media Library.

Replace file

By default, the Edit Media screen does not allow us to replace the underlying file with another file. Read this tutorial to solve this problem.

Further reading

I recommend the other tutorials in this series to learn more about managing attachments in WordPress.

WordPress

Related Tutorials

Open chat
Need help?
Hi! 🤝 Open the chat if you have any question, feedback, or business proposal. I would love to hear from you.