File Renaming on Upload Pro is the pro version of the free File Renaming on Upload plugin, making it more awesome.
The main purpose of this plugin is to fix problematic file uploads with accents or special characters. An essential plugin for non-english websites.
Besides that, it can improve your SEO adding some relevant info to your filename, like your domain name or the post title your file is attached on.
- Edit filenames and permalinks manually
- Update old media
- Autofill ALT tag
- New rules
- Custom field rule
- Taxonomy rule
- Rename filename extension from jpeg to jpg
- Update media on post update
Note: After you click the Apply button, you don’t need to stay on the same page waiting the background process. You can navigate normally.
Autofill ALT tag
After uploading images, their own filenames will be registered as the ALT attribute. In other words, if you upload an image called My Cat.jpg it will have its alt tag automatically filled like <img alt=”My Cat” />.
This feature can improve your SEO, so try to create descriptive names to your images before uploading them.
Custom field rule
This is a new kind of rule.
If you have a custom field on your post and upload an image, it will be renamed according to this custom field if you want.
A practical example:
- Create a rule {cf:_myfield}
- Create a custom field called “_myfield” for some post
- Fill this field as “Test”
- If you upload an image to that post, the image will be renamed according to the field value, so it will be called test.jpg
New filename rules will always be implemented as the plugin gets updated.
For now, besides the free rules, you will have
- User ID – Gets current user id
- User Role – Gets current user role
- User Name – Gets current user name
- Product SKU – Gets SKU from a WooCommerce product if possible
- Post Slug – Gets post slug
- Post ID – Gets post ID
This is a new kind of rule.
The file will be renamed according to the post terms of a specific taxonomy.
e.g. {tax:category}
Jpeg to JPG
Renames filename extension from jpeg to jpg.
Update media on post update
Updates media filename from a post (including custom post types) when it gets updated.
Will only work on attached media.