I usually write the same thing for alt/title tags, would be nice to just enter it in once and have it get used for both fields. Is there a plugin that does that? I don't want a generator, I just want to do it once per image rather than twice.
Wordpress cloning image alt/title tags?
Collapse
X
-
you could make it use the post title for the alt and title tag for images.Comment
-
something like this maybe
Code:function change_image_stuff($html) { global $post; $html = preg_replace('/(alt|title)=\"[^"]*"\s/','$1="'.$post->post_title.'" ', $html); return $html; } add_filter( 'post_thumbnail_html', 'change_image_stuff', 10 ); add_filter( 'image_send_to_editor', 'change_image_stuff', 10 );Comment


Comment