WP Add Titles to post thumbnails
v1.0freelancevip · 2016年8月26日 上架
Authomatically adds title to the_post_thumbnail function.
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 1,938
- 最近更新
- 2016年8月26日
1 条评价需要 WordPress 3.9+已测试到 4.6.30
贡献者
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