automatic inserting media file names into caption on uploading
-
I have plenty of images with long descriptive file names. I would like to upload them to WP, to a gallery, where I need to show their descriptions. I have thought, that it is a basic function, but after 15 hours of searching and attempting I can’t believe that it isn’t there (or I do something wrong).
I tried https://www.ads-software.com/support/topic/display-title-as-caption-in-wp-gallery, there isn’t mentioned which functions.php to modify:
in themes this do nothing
in wp-include WP notifies: undefined function add_action() (next 2 hours searching how to solve it – if I understood this is not proper one)I tried to modify media-template.php: https://unsalkorkmaz.com/wp3-5-media-gallery-edit-modal-change-captions-to-title/ – this simple substitution in the begin of this article, but it didn’t help (it is difficult to me to understand whole program).
I tried or explored a few plugins (Media Library Assistant, File Gallery, Format Media Titles, Image Formatr, Image Metadata Cruncher).
Then I tried to show file names (or titles) instead of caption under images using short codes or NextGEN Gallery (which doesn’t support accent file names and in the end doesn’t work at all).
The only solution I have found is to modify database directly:
UPDATE
wp_postsSET
post_excerpt=
post_titleWHERE
post_type= "attachment" AND
post_excerpt= ""
??
- The topic ‘automatic inserting media file names into caption on uploading’ is closed to new replies.