Format Media Titles
Mod to plugin "Format Media Titles" to remove triailing numbers if not DCF name (2 posts)

  1. gizmomol
    Posted 2 years ago #

    WordPress uses the uploaded file name, without the file type, as a default title. I did this mod to make it easier for people that name their media locally prior to "Add Media". If they used trailing numbers to distinguish multiple photos of the same item, the "Format Media Titles" plugin with this mod gives them a greater chance of having a correct defaut title without their editing it.

    But if the uploaded media is uploaded with a DCF camera file name, typically "IMG_1234", the mod does not remove the digits. The DCF camera format has many 8 character possibilities, so I am merely testing the last 4 characters, and if found to be numeric, the title is not changed.

    The mod I did is on pastebin at and I posted it in the hope it might be useful.


  2. David Gwyer
    Plugin Author

    Posted 2 years ago #

    Thanks. I'll take a look at your mod when I have the time.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Format Media Titles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic