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.
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.
- How to Upload a File to the Media Library in WordPress
- How to Edit an Attachment in WordPress
- How to Replace an Attachment in WordPress
- How to Delete an Attachment in WordPress
Comments