內容簡介
此外掛自動為 the_post_thumbnail 函式新增標題。為 img 標籤添加標題屬性。有兩個選項:目前文章標題(預設)或附件標題(需要將 SHOW_POST_TITLE_AS_THUMBNAIL_TITLE 設置為 FALSE)。
功能
為 the_post_thumbnail 函式添加 img 標籤的標題屬性。
顯示文章標題或附件標題。
精簡且程式碼寫得不錯的外掛。
它不會更改數據庫或其他文件。
說明
基本上,此外掛會在縮圖中添加文章標題。
如果要顯示附件標題,請在 wp-add-title-to-post-thumbnails.php 中找到以下行:
並將其替換為
外掛標籤
開發者團隊
② 後台搜尋「WP Add Titles to post thumbnails」→ 直接安裝(推薦)
原文外掛簡介
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
