An attachment is an image or other file uploaded through the post editor’s upload utility. Attachments can be displayed on their own ‘page’ or template.”
Attachment – WordPress Codex
Why are Attachments Important
- Less Confusing for the User: Allowing the user to see an image more clearly, without navigating away from your site or clicking the back button to get back to your site.
- Direct Attachment to Posts and Pages: Simpler to change an image for a single post or page, or changing them all at once across your site, instead changing them individually.
- Branding: How you present yourself; is your site professional, establishing a personal confidence and trust in your product or service.
Types of Attachments
Attachments are images and files linked to the web page on WordPress.
There is a range of file types that can be uploaded into the Media Library they include image, video and audio files, but other file types such as document files or spreadsheet files can also be incorporated into your WordPress site.
Depending on what your reason for the attachment, users can also upload PDFs or files publicly or privately in a Page or a post set by Publish > Content Visibility.
For the advanced WordPress user, Digging into WordPress has tutorials for working with image attachment functionality to integrate attachments into WordPress Themes.
- Using Image and File Attachments – WordPress Codex
- Inserting Images into Posts and Pages – WordPress Codex
- Attach a file to a WordPress post or page – Evergreen State College
- Add PDF to WordPress Post or Page – YouTube [Video]
- Three Ways To Add PDF Files To Your WordPress Site – YouTube
- How to Get All Post Attachments in WordPress Except for Featured Image – WPBeginner