When adding an image attachment to a post, the Title field is always filled automatically with the file name.
For some images I change this into something more meaningful, for other images I want this field to be empty (in my theme I'm displaying this title field as a caption below each image, but not all images should have this caption).
However, if I clear the Title field, it shows again the file name upon save - with the message "Empty Title filled from filename."
Any ideas how to change this behaviour, or suggestions for a workaround? I could use the Alt field or Caption field, but I prefer using the Title field - so my client can already fill in the titles by changing the filenames before upload.
Without a post title, Attachments become significantly harder to use as they no longer have a title that can be clicked on.
If you're processing attachments and generating html manually I recommend using another piece of attachment meta, or just filling in appropriate titles, after all an image is a picture of something, let that something be its name, there's nothing stopping duplicates either.
If you really must remove the title, go to the html tab and manually remove it from the tag. Else put in a placeholder character such as '-'.
Ofnote, attachments are posts too, and that means they have post meta. You could add a checkbox to the edit attachment page, allowing you to toggle on and off wether the attachments title is displayed or not.
|show 2 more comments|
Just a suggestion.
use a specific title or charactar for titles you dont want to show. for example.
Then in your theme, check