The WordPress Media Library is a core feature of WordPress that allows you to import, export, and organize images, videos, and graphics for your website.
The tool also allows basic management features such as photo editing, bulk organization, and media search.
If your WordPress website will be media-heavy – for example, a photography, portfolio, or blog website – then mastering the WordPress Media Library is a must for success.
Continue reading to learn more about:
- Navigating the WordPress Media Library
- Importing and Exporting Media
- Editing Images
Enjoy fast, secure hosting optimized for your WordPress site with our WordPress Hosting plans.
Navigating the WordPress Media Library
First, let’s show you around the Media Library. Navigate to Media > Library in your WordPress dashboard.
Once in the Media Library, you will see all of the media you’ve uploaded to your website. This includes media uploaded while creating a page or post, or media uploaded directly through the Media Library. The types of files you’re able to upload includes:
- Images (.jpg, .jpeg, .png, .gif, and .ico).
- Audio files (.mp3, .m4a, .ogg, and .wav).
- Videos (.mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, and .3g2).
- Word documents
- Excel spreadsheets
- PowerPoint presentations
- Adobe Photoshop documents
You can toggle between list or grid view by clicking the list or grid icon in the far left of the Media Library menu. The dropdown All media items allow you to sort your media by Images, Audio, Video, Documents, Spreadsheets, Archives, Unattached, and Mine.
The second dropdown, All dates, can refine the search of the first dropdown or serve as a lone date search for all media. The dates are organized by month and year.
Next, you can click Bulk Select to delete files in bulk. This feature can be used with search options within the dropdowns or the search field – which allows you to search by file name.
Importing and Exporting Media
You can easily add media through the Media Library or within a page or post. To add media via the Media Library:
- Navigate to Media > Add New.
- Drap and drop files from your computer or click Select Files to upload files from your computer.
- Once uploaded, your image or file will appear as a thumbnail below the file upload box. If you uploaded an image, you can also choose to Edit it on this screen. We’ll walk you through editing below.
- If you navigate to Media > Library, you will see your newly added file.
You can also upload media while creating or editing a post or page. This convenience feature helps streamline your workflow by allowing you to import files where you are instead of having to go to the Media Library.
To upload files within a page or post:
- Click on the + icon within the editor or in the upper left corner.
- Search media or the name of the media you would like to add in the search box of the block library. For this example, we chose Image.
- Once the Image block appears, click Upload.
- Select an image from your computer. It will be automatically uploaded and added to the post.
- Click Publish or Update to save your changes.
If needed, you can also export the media uploaded to your website.
- Navigate to Tools > Export.
- Scroll down and click the radio button next to Media.
- Click Download Export File.
Of note, your file will export as an XML file, which makes importing to another WordPress site easy.
You can make minor edits to your images with the Media Library. This includes the image blocks within pages and posts as well.
In the WordPress Media Library
While in the Media Library (Media > Library), click on an image you would like to edit and then click Edit. Here you’ll have the option to Crop, Rotate left, Rotate right, Flip vertical, or Flip horizontal. In the right sidebar, you can scale the image and set an aspect ratio for greater control of the cropping/scaling of an image.
In Pages and Posts
While editing a page or post, though presented differently, you have the same image editing options as the media library. Clicking on the image will show options above and to the right of the file.
Above the image, a toolbar will allow you to crop and realign the image. While in the toolbar to the right, you will be able to resize the image.
With the basics of the WordPress Media Library covered, learn more WordPress tips and tricks on our WordPress Education Channel!