Media library

The media library is where WordPress stores all of your uploaded files, such as images, PDFs, music, and videos. To see your media library, navigate to Media in the main menu (there's probably not a lot of media there at the moment):

What you're seeing is a nice grid layout that makes looking through media very user-friendly. My media library has four photos in it at the moment. Once I click on any of them, I will see the Attachment Details screen that we talked about in Chapter 3, Creating Blog Content. On this screen, there are a lot of options to modify the file that's been selected.

We can edit details, such as Title, Caption, Alt Text, and Description, and also delete the file permanently or view it on the frontend of the site:

You can also add a new file to the media library. Navigate to Media | Add New to access a page, similar to the upload media page that you got while uploading a file for a post. When you click on the Select Files button and pick the file to be uploaded, or drag and drop it directly from your desktop, WordPress will upload the file and then display it along with the other media files in the library. Your new item will be unattached to any post or page at this point.

To include it somewhere (in a post or page), go to Posts or Pages and proceed to edit one of the posts/pages. Click on the + button in the top-left corner and pick the Image block. Now, instead of uploading a new file, just select it from the media library. We covered the entire process more extensively in the previous chapter: