Tag Archives: rename

How To Auto Rename Images Based On Post Title In WordPress?

You can set WordPress to automatically rename images and other media files on upload in order to better the SEO of your website. Images can be automatically renamed on the basis of the post title or the site URL.

File Renaming on Upload is a WordPress plugin that automatically renames media files as they are uploaded so that they can be exhibited without any problems. It renders filenames properly with accents and special characters. It also allows you to use your post title or prefix website domain name to make your images more SEO friendly.

  • Rename files on upload based on the post title
  • Rename files on upload based on the Site URL
  • Rename files on upload based on the current date
  • It updates the file permalink based on file renaming
  • Remove accents and special characters from filenames on upload

To start using the plugin simply navigate to Plugins -> Add New page on your dashboard to find and install File Renaming on Upload plugin. Once activated, navigate to its Settings -> File Renaming page to enable the plugin and set your rule for file uploads.

  1. Add Site URL: Insert “www.yoursite.com” at the beginning of the file name. Ex: yoursite.com_filename.jpg
  2. Replace File Name by Date Time: Replaces filename by date-time, like “2013-07-18_21-48-19”
  3. Lowercase: Converts all characters to lowercase
  4. Remove Accents & Special Chars: Removes these special chars:? + [ ] / \ = < > : ; , ‘ ” & $ # * ( ) | ~ ` ! { }

You simply need to tick the options you like to enable on image upload and save your changes. The plugin will automatically work each time a new file is uploaded on your WordPress website using Media Library and Add Media thick box on post-edit screens.