add_filter and changing output captions of image gallery
There are no filter hook called captiontag. You can change the value of the caption html tag by specifying the captiontag option when inserting the shortcode. From the gallery shortcode codex page: captiontag the name of the XHTML tag used to enclose each caption. The default is “dd”. For example, to change the gallery markup … Read more