Items in gallery to show title and date overlay on thumbnail


Please can you help me with the code to show date and title on all media in the gallery. Thanks for your kind help.


Hello @mahwash,

Please, refer this similar functionality which will add author name on media in the media gallery to get an idea here -

You can customize this code according to your requirement.



Sorry i can’t find this “templatemedia-gallery-item.php”

Where is this template located please?


Hello @mahwash,

You can find this template in this location -