Support

Account

Home Forums Backend Issues (wp-admin) Auto rename a picture of a custom field Reply To: Auto rename a picture of a custom field

  • Thank you for your reply. I have a custom field image, but I want the image file is renamed during the upload. For example, when I upload an image to a custom post type review, it automatically renames the file “gears-of-war xbox-360-review-4565.jpg” or “gears-of-war-xbox-360-preview.jpg “. So I would like for a cover, the file is automatically renamed as “gears-of-war-xbox-360-cover.” Should therefore add a piece of code that determines if the upload is done from the custom field image “cover” and add “cover” in the new filename.