The Basics of Handling Media Files

Up to now, you've learned about entering, editing, styling, and laying out text content. In this lesson, you begin the same process for media files, which primarily means images, but also includes video, audio, and documents. I start with the basics of uploading and inserting an image into a post and then take a brief look at how WordPress stores it along with other media files.


There are several points within the WordPress admin screen where you can upload images and other media files, as shown in Figure 11-1.



  • The Add New link in the Media section of the side menu
  • The Upload link on the Shortcut menu at the top right
  • The Upload/Insert menu at the top left of the Text Editor

Typically, you'll be using the Upload/Insert menu when creating posts and pages, so I'll use it to illustrate the basics of uploading an image.

The title of this menu is important because it's a reminder that it fulfills two functions, both of which are completely separate:

  • Uploading media files
  • Inserting media files into posts

You can upload media files and not insert them into the post, and you can insert media files that were previously uploaded.

Figure 11-2 shows a close-up of the menu.



The four icons represent four types ...

Get WordPress® 24-Hour Trainer, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.