WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

Restore Image Title

Restores the title attribute when images are inserted into posts

6 reviews
Average Rating
5 stars
5 out of 5 stars
5 stars
thanks!
By , for WP 3.5.1

thanks for this handy little plugin!
i've takent the liberty to add another few lines of code, so that it also auto-fills the alt-tag if empty:

function lcb_restore_image_title( $html, $id ) {

	$attachment = get_post($id);
    if (strpos($html, "title=")) {
    	$returnvar = $html;
    	}
    else {
		$mytitle = esc_attr($attachment->post_title);
		$returnvar = str_replace('<img', '<img title="' . $mytitle . '" '  , $html);
	}
    if (strpos($returnvar, "alt=\"\"")) {
		$mytitle = esc_attr($attachment->post_title);
		$returnvar = str_replace("alt=\"\"", "alt=\"" . $mytitle . "\"" , $returnvar);
    }

	return $returnvar;

}

feel free to include this in your plugin, if you think other people will like it.

5 stars
works perfectly
By ,

I really wish we didn't need this plugin, but super delighted that the developer took the time to create it so we can get all the SEO juice possible on images.

5 stars
YES!
By , for WP 3.5.1

THANK YOU!
I've been going mad having to insert titles to each image by hand for my lightbox posts.
Now, if only I could find one that inserts "rel=lightbox" without it doing it "automatically"

5 stars
THANK YOU!
By , for WP 3.5.1

Exactly what I needed for my image heavy blog. Thank you!!

5 stars
Outstanding! - Thanks
By , for WP 3.5

Thanks for a plugin to fix that annoying new feature in WP3.5!
I've had so many complaints from clients about that missing title the last few weeks. Now I can send them to grab this plugin.
Highly recommended

5 stars
Kudos!
By , for WP 3.5

Excellent work, and thank you for this!

You must log in to submit a review. You can also log in or register using the form near the top of this page.