Set Filename as Title for All Images in the WordPress Media Library

If you’re a photographer, we’re almost sure you like to save your photos orderly. However, when you upload them to WordPress, they may have other titles, depending on the configuration of your website.

In that case, the best option is copying the filename to the Title field. But there’s another problem… You’ll have to spend a lot of time copying the filenames to the titles one by one.

That’s why we want to show you how to set the file name as the title for all the images in the WP Media Library. It’s really simple because we’ll do it using the Media Library Spreadsheet plugin.

This plugin displays all your WP Media Library files on a spreadsheet for you to apply changes quickly as you would do with Excel or Google Sheets. Also, you can apply massive changes with the Bulk Edit tool.

You can download the plugin here:

Download Media Library Spreadsheet Plugin - or - Check the features

Once you download and activate the plugin, open the spreadsheet by going to WP Sheet Editor > Edit Media.

set-filename-title-all-images-wordpress-media-library

Now just follow these simple steps.

1- Open the Bulk Edit tool

You won’t have to spend a lot of time editing your images because you can do it in just some minutes and with a few clicks using the Bulk Edit tool. Open it with one click on the toolbar.

set-filename-title-all-images-wordpress-media-library

2- Filter all the images

As you’ll see, this spreadsheet shows you all kinds of files. For example, videos, images, audios, software, zips, etc. That’s why you need to filter the images to apply the change to them only.

For that, just select the I want to search the rows to update option in the Select the rows that you want to update dropdown. That will open a search tool for you to filter your files.

set-filename-title-all-images-wordpress-media-library

Now you just need to tick the Enable advanced filters checkbox and select these values to find all the images in your WP Media Library.

set-filename-title-all-images-wordpress-media-library

  • Field key: Format
  • Operator: CONTAINS
  • Value: image
  • Click on Run search

That will filter all your images and take you back to the Bulk Edit tool for you to copy the content from the Filename column to the Title column.

3- Set the filename as the title for all your images

You need to select these settings to set the filename as the title for all the filtered images.

set-filename-title-all-images-wordpress-media-library

  • Select the rows that you want to update: I want to search the rows to update
  • What field do you want to edit: Title
  • Select type of edit: Copy from other columns
  • Copy from this column: wp attached file ($_wp_attached_file$)
  • Click on Execute now to set the filename as the title for all your images in the WP Media File.

Avoid 404 errors when you edit your image filenames

Here’s a tutorial that shows you how to easily bulk edit filenames and avoid 404 erros by automatically creating 303 redirects.

It’s easy!

You see? It’s really simple and fast to set the file name as the title for all your images on the media library. Of course, you can do it in minutes without having to edit our files one by one, and you’ll avoid server errors because the plugin will apply the changes in batches to give your server some rest.

You can download the plugin here:

Download Media Library Spreadsheet Plugin - or - Check the features

Do you need help?

You can receive instant help in the live chat during business hours, or you can contact us and we will help you via email.