Title: Content Attachments
Author: Themecraft Studio
Published: <strong>April 24, 2017</strong>
Last modified: October 27, 2019

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Content Attachments

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

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

 * [Details](https://wordpress.org/plugins/content-attachments/#description)
 * [Reviews](https://wordpress.org/plugins/content-attachments/#reviews)
 * [Development](https://wordpress.org/plugins/content-attachments/#developers)

 [Support](https://wordpress.org/support/plugin/content-attachments/)

## Description

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]

## FAQ

  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)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Content Attachments” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Content Attachments” into your language.](https://translate.wordpress.org/projects/wp-plugins/content-attachments)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/content-attachments/),
check out the [SVN repository](https://plugins.svn.wordpress.org/content-attachments/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/content-attachments/)
by [RSS](https://plugins.trac.wordpress.org/log/content-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

## Meta

 *  Version **1.1.0**
 *  Last updated **7 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.4.0 or higher **
 *  Tested up to **5.3.0**
 *  PHP version ** 7.0.0 or higher **
 *  [Advanced View](https://wordpress.org/plugins/content-attachments/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/content-attachments/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/content-attachments/)