{"id":67187,"date":"2017-04-24T19:54:22","date_gmt":"2017-04-24T19:54:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/content-attachments\/"},"modified":"2019-10-27T13:25:37","modified_gmt":"2019-10-27T13:25:37","slug":"content-attachments","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/content-attachments\/","author":15410324,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"trunk","tested":"5.3.0","requires":"4.4.0","requires_php":"7.0.0","requires_plugins":"","header_name":"Content Attachments","header_author":"Themecraft Studio","header_description":"Wrap non-image post attachments in handy tags that allow easy styling with CSS.","assets_banners_color":"","last_updated":"2019-10-27 13:25:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/content-attachments\/","header_author_uri":"https:\/\/themecraft.studio\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1570,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1646043","resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.3","0.0.4","0.2.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[140028],"plugin_business_model":[],"class_list":["post-67187","plugin","type-plugin","status-publish","hentry","plugin_contributors-themecraft","plugin_committers-themecraft"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/content-attachments\/assets\/icon-128x128.jpg?rev=1646043","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Use <code>add_filter('content-attachments\/template\/paragraph', $html)<\/code> to customized the HTML markup to render the attachment. Defaults to:<\/p>\n\n<pre><code>&lt;a class=\"{{classes}}\" type=\"{{mime-type}}\" href=\"{{url}}\" {{extra_attrs}}&gt;\n    &lt;span class=\"content-attachment-text\"&gt;{{text}}&lt;\/span&gt;\n    &lt;span&gt;&lt;i class=\"content-attachment-icon\"&gt;&lt;\/i&gt;&lt;\/span&gt;\n&lt;\/a&gt;\n<\/code><\/pre>\n\n<p>For this plugin to work properly, \"wpautop\" (i.e. automatic wrapping in <code>&lt;p&gt;<\/code> tags of lines written in WYSIWYG editors) must be enabled on WYSIWYG content editors of both WordPress and ACF. This is the default behavior.<\/p>\n\n<p>Please report issues or ask questions on (GitHub)[https:\/\/github.com\/themecraftstudio\/wordpress-content-attachments]<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Where should I report issues or get help?<\/dt>\n<dd><p><strong>GitHub<\/strong> Please report problems directly on the plugin's <a href=\"https:\/\/github.com\/themecraftstudio\/wordpress-content-attachments\">main development repository<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<p><em>Release Date - 27 October 2019<\/em><\/p>\n\n<ul>\n<li>Fix - Disabled libxml warnings to hide warnings when the markup contains custom elements<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p><em>Release Date - 31 January 2019<\/em><\/p>\n\n<ul>\n<li>New - {{extra_attrs}} placeholder to include all other attributes present in the anchor<\/li>\n<li>Deprecated - {{class}} in favor of {{classes}}<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<p><em>Release Date - 31 August 2018<\/em><\/p>\n\n<ul>\n<li>Fix - load HTML content as UTF-8<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>New - filter 'content-attachments\/template\/paragraph'<\/li>\n<li>Deprecated - filter 'content-attachments_template'<\/li>\n<\/ul>\n\n<h4>0.0.1<\/h4>\n\n<p><em>Release Date - 21 April 2017<\/em><\/p>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Wrap non-image post attachments in handy tags that allow easy styling with CSS.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/67187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=67187"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/themecraft"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=67187"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=67187"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=67187"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=67187"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=67187"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=67187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}