這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Default Post Thumbnail Image

外掛說明

Set a default thumbnail using either an image from your image gallery or use your gravatar for posts with no thumbnail set.

This plugin requires your theme to have support for post thumbnails enabled.
Although no extra code needs to be added to your theme, some alterations might be required for trouble free usage.

安裝方式

  1. Upload the file and extract it in the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to the Settings -> Media page and select an image.

常見問題集

My selected post thumbnail does not show, why not?

Although this plugin hooks into the get_the_post_thumbnail() function to show your selected image it does not alter your posts, so has_post_thumbnail() returns false.

To display the thumbnail without fail remove any if conditions to just leave the get_the_post_thumbnail() function

for example, change this

Some other html

to this

使用者評論

2017 年 2 月 7 日
It may be my theme (a child theme of My Life by Greenshady), but it doesn't work for me.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Default Post Thumbnail Image〉的開發相關工作。

參與者

將〈Default Post Thumbnail Image〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Version 0.7

This version adds the option to choose a different users avatar to use instead of the site admin

Version 0.6

Initial release