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

Post Thumbnail Extras

外掛說明

Features

  • Provides a shortcode for embedding post-thumbnails. Authors can quickly change pictures in posts without wading through HTML. This can be awesome in several ways: if your post-thumbnails change the width or height due to a theme change, or if you have cropped them with another tool — this will always pull wordpress’ latest image).
  • Includes a hook into the media library to create the above shortcode.
  • Add new post thumbnails via WordPress Settings → Media.

Future Plans

Submit any other ideas at https://github.com/sewpafly/post-thumbnail-extras/issues.

螢幕擷圖

  • In Settings → Media, click the plus sign to add a new post thumbnail.
  • Update the width/height and whether or not the post-thumbnail should be cropped to an exact size. (If the width or height is set to 0, that boundary constraint is not enforced). Make sure you click the “Save Changes” button so that the changes are stored in the database.
  • In the media editor, you can choose to insert a shortcode of a single picture with the “Insert shortcode” button.

安裝方式

Shortcode

Use the shortcode [pt] in your posts to quickly embed the featured image as a thumbnail. Use the attribute ‘size’ to change to a different post-thumbnail size (e.g. [pt size='medium']). You can also use any image in your media gallery if you know the id, by using the id attribute ([pt id='100']).

Use the link attribute to wrap the image in a link.

  • link='file' will create a link to the full size image.
  • link='post' will create a link to the attachment page.
  • link='http...' creates a link to any URL.

Use the media library to quickly add this shortcode for the selected image by pressing the “Insert shortcode” button.

Add/Delete Post Thumbnails

  1. In Settings → Media, click the plus sign to add a new post thumbnail.
  2. Update the width/height and whether or not the post-thumbnail should be cropped to an exact size. (If the width or height is set to 0, that boundary constraint is not enforced — effectively, it’s infinite). Make sure you click the “save” button so that the changes are stored in the database.

常見問題集

Did you even test this?

Yes. No. Sort of. Thanks for asking. But let me know if you’re having problems and I’ll see what I can do.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

6.0

  • Added ptx_html_attrs filter for modifying the html output
  • Fixed the shortcode_atts so that the shortcode_atts_ptx filter will fire

5.0

  • Updated for wordpress 3.8
  • Added code to check for pending operations on the Options → Media screen.

4.0

  • Added alignment and link options to the shortcode
  • WordPress 3.6-beta2 fix

3.0

  • Shortcode Creation with the Media Library
  • Display post thumbnail information for thumbnails created by other plugins and themes

2.0

  • CRUD (Create/Read/Update/Delete) operations on post-thumbnails

1.0

  • Initial cut