Directory / plugin

WP Add Titles to post thumbnails

v1.0 · by freelancevip

Authomatically adds title to the_post_thumbnail function.

View on WordPress.org

About this plugin

Authomatically adds titles to the_post_thumbnail function. Adds title attribute for img tag. There are two options: current post title (default) or attachment title (need set SHOW_POST_TITLE_AS_THUMBNAIL_TITLE to FALSE).

Features

  • Add title attribute to img tag for the_post_thumbnail function.
  • Shows post title or attachment title.
  • Small and well written code plugin.
  • It does not change the database or other files.

Instructions

Basically, plugin adds post title to thumbnails.
For displaying attachment title find line

in wp-add-title-to-post-thumbnails.php
and replace it with

Plugin tags