If you’re familiar with sending emails, then you know that an attachment is a file that is “attached” or sent along with the text of the email. In WordPress, attachments work quite similarly and are media files that are “attached” or included in the content of a post or page.
When you upload media to the library of your WordPress site, those files are not attached to any particular post or page. But when you are creating a new post or page, you can choose which media file will be used in that post or page. And those media files are known as the attachment to the post or page.
Note: Media files can be attached to multiple posts/pages at the same time!
If you’re simply administering a WordPress website, then the only time you’ll deal with attachment is when creating a new post or page. But developers use template tags to control how media files are displayed when they are attached to a post or page. For example, you might want to control the size or location of how an attachment is displayed.
Note: From your admin area, you can click on “Media” and then “Library” to learn more about which posts/pages that media files have been attached to. Click on an individual media file, and you’ll see where (if anywhere) the media file has been attached (“Uploaded to”). For even more information, click on “View attachment page” at the bottom of the screen to see how the media file has been used in the associated post(s) or page(s).
Keep in mind that if you delete a post or page, the attached media file will not be deleted but the media file will no longer be associated or attached to that post or page.
Latest posts by Jamie Spencer (see all)
- How to See Your Instagram Password (While Logged in) - May 13, 2022
- How To Easily Create a Free Business Email Address In Just 5 Minutes - February 22, 2022
- 50 Common WordPress Errors and Simple Fixes - January 24, 2022