Adding Image title attribute to Caption output?
-
Hi- I’m looking to add image title tags to the output of the default captions. I’ve seen ways to rewrite the default caption behavior (http://ww.wp.xz.cn/support/topic/add-new-caption-shortcode-attribute?replies=8 or http://devpress.com/blog/captions-in-wordpress/) but I’m having problems when trying to extract the correct title for that particular image.
I’ve also seen
apply_filters('the_title',$image->post_title);
but I think I’m running into problems with making sure the caption is calling the attachment’s id so that the filter knows which post title it’s after. Or I’ve just been staring at this too long and am missing the obvious.Thanks!
The topic ‘Adding Image title attribute to Caption output?’ is closed to new replies.