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

WP Wrap Images

描述

Wraps all images inserted into a WYSIWYG field from the Add Media interface with the [caption] shortcode, even if no caption is assigned to the image. The end result is that all images will be wrapped with a <figure> element, even if no caption is assigned to the image. Compatible with the standard WordPress tinyMCE editor and the Advanced Custom Fields WYSIWYG field type.

For bleeding-edge updates, or to report issues, visit the WP Wrap Images Github repository

安裝

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. This plugin has no settings to configure — once it is activated, it starts doing it’s work immediately

常見問題

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. This plugin has no settings to configure — once it is activated, it starts doing it’s work immediately
What if I’m already replacing the `[caption]` shortcode in my theme or another plugin?

This plugin adds a replacement [caption] filter to the img_caption_shortcode hook, using the default filter priority of 10. This will interact unpredictably with other filters using the same hook at the same priority, and will override any similar filters using a lower priority.

If you want to use this plugin in combination with a different caption override filter, and you have control over the priority setting of that filter, you should assign your filter a priority value greater than 10.

This plugin will be useless with any different [caption] shortcode replacement that ignores images without captions.

評價

There are no reviews for this plugin.

貢獻者及開發者

“WP Wrap Images” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Wrap Images 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.1.0

Fixed a bug where the closing bracket on HTML tags preceding an image tag would be deleted when the shortcode was applied.

0.1.0

  • First release of the plugin