Title: Content Attachments
Author: Themecraft Studio
Published: <strong>2017 年 4 月 24 日</strong>
Last modified: 2019 年 10 月 27 日

---

搜尋外掛

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

![](https://ps.w.org/content-attachments/assets/icon-128x128.jpg?rev=1646043)

# Content Attachments

 由 [Themecraft Studio](https://profiles.wordpress.org/themecraft/) 開發

[下載](https://downloads.wordpress.org/plugin/content-attachments.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/content-attachments/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/content-attachments/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/content-attachments/#developers)

 [技術支援](https://wordpress.org/support/plugin/content-attachments/)

## 外掛說明

Wraps post attachments that are not images in handy tags that allow easy styling
with CSS. It also adds a class to the attachment containing the mime type.

Use `add_filter('content-attachments/template/paragraph', $html)` to customized 
the HTML markup to render the attachment. Defaults to:

    ```
    <a class="{{classes}}" type="{{mime-type}}" href="{{url}}" {{extra_attrs}}>
        <span class="content-attachment-text">{{text}}</span>
        <span><i class="content-attachment-icon"></i></span>
    </a>
    ```

For this plugin to work properly, “wpautop” (i.e. automatic wrapping in `<p>` tags
of lines written in WYSIWYG editors) must be enabled on WYSIWYG content editors 
of both WordPress and ACF. This is the default behavior.

Please report issues or ask questions on (GitHub)[https://github.com/themecraftstudio/
wordpress-content-attachments]

## 常見問題集

  Where should I report issues or get help?

**GitHub** Please report problems directly on the plugin’s [main development repository](https://github.com/themecraftstudio/wordpress-content-attachments)

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Themecraft Studio ](https://profiles.wordpress.org/themecraft/)

[將〈Content Attachments〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/content-attachments)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/content-attachments/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/content-attachments/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/content-attachments/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/content-attachments/)。

## 變更記錄

#### 1.1.0

_Release Date – 27 October 2019_

 * Fix – Disabled libxml warnings to hide warnings when the markup contains custom
   elements

#### 1.0.0

_Release Date – 31 January 2019_

 * New – {{extra_attrs}} placeholder to include all other attributes present in 
   the anchor
 * Deprecated – {{class}} in favor of {{classes}}

#### 0.3.1

_Release Date – 31 August 2018_

 * Fix – load HTML content as UTF-8

#### 0.3.0

 * New – filter ‘content-attachments/template/paragraph’
 * Deprecated – filter ‘content-attachments_template’

#### 0.0.1

_Release Date – 21 April 2017_

 * Initial release

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **7 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.0**
 *  PHP 版本需求 ** 7.0.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/content-attachments/)
 *  [進階檢視](https://tw.wordpress.org/plugins/content-attachments/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/content-attachments/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/content-attachments/reviews/)

## 參與者

 *   [ Themecraft Studio ](https://profiles.wordpress.org/themecraft/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/content-attachments/)