{"id":1335,"date":"2021-07-23T07:03:28","date_gmt":"2021-07-23T12:03:28","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=1335"},"modified":"2021-11-30T07:02:39","modified_gmt":"2021-11-30T13:02:39","slug":"how-to-allow-attachments-in-wordpress-comments","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/","title":{"rendered":"How to Allow Attachments in WordPress Comments?"},"content":{"rendered":"\n<p>As a default behavior, WordPress restricts comments to just text (with some\u00a0HTML\u00a0markup allowed on a very limited scale). However, there are times when it would be nice to allow attachments, just as pics or documents, like Word or Excel, or even text document attachments. The sky is the limit &#8211; you could even allow video, if that\u2019s what you wanted.<\/p>\n\n\n\n<p>Enabling attachments in WordPress comments will require a bit of effort in creating a custom function, or you could simply install a plugin that will enable such functionality. The \u201cDCO Comment Attachment\u201d plugin is one of the more popular options for enabling attachments in WordPress comments.<\/p>\n\n\n\n<p>Following the How to <a href=\"https:\/\/www.knownhost.com\/kb\/how-to-install-wordpress-plugins\/\">Install a Plugin in WordPress steps<\/a>, locate, install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/dco-comment-attachment\/\">DCO Comment Attachment plugin<\/a>.<\/p>\n\n\n\n<p>To set the parameters surrounding comment attachments resulting from the DCO Comment Attachment plugin, go to the WordPress admin panel, using the below steps.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Settings -&gt; Discussion -&gt; Comment Attachments:<\/code><\/pre>\n\n\n\n<p>The options available include the ability to specify where the attachment form is placed, how large attachments can be, whether or not it\u2019s required, how to label the form, if it should have the attachment linked and whether or not to include a thumbnail.<\/p>\n\n\n\n<p>Attachment file types can be regulated. Tick boxes allow for any or all types within a given category.<\/p>\n\n\n\n<p>Available attachment categories include:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Image<\/li><li>Audio<\/li><li>Video<\/li><li>Document<\/li><li>Spreadsheet<\/li><li>Interactive (Slideshow)<\/li><li>Text<\/li><li>Archive<\/li><li>Code<\/li><li>Other<\/li><\/ol>\n\n\n\n<p>Within each of the 10 categories, there are multiple document type choices that can be enabled via tickbox. This means you can allow some, all, or none of a category, with choices available across several categories, if you choose.<\/p>\n\n\n\n<p>It\u2019s a very powerful plugin that allows attachments to be tagged onto comments.<\/p>\n\n\n\n<p><strong>Note:<\/strong>\u00a0These formats will likely change as the plugin gets developed, updated, and popular document types change.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a default behavior, WordPress restricts comments to just text (with some\u00a0HTML\u00a0markup allowed on a very limited scale). However, there are times when it would be nice to allow attachments, just as pics or documents, like Word or Excel, or even text document attachments. The sky is the limit &#8211; you could even allow video, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[146],"tags":[251,252,106],"class_list":["post-1335","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-blogs","tag-cms","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Allow Attachments in WordPress Comments? - KnownHost<\/title>\n<meta name=\"description\" content=\"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Allow Attachments in WordPress Comments? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-23T12:03:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-30T13:02:39+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"How to Allow Attachments in WordPress Comments?\",\"datePublished\":\"2021-07-23T12:03:28+00:00\",\"dateModified\":\"2021-11-30T13:02:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/\"},\"wordCount\":306,\"keywords\":[\"blogs\",\"cms\",\"wordpress\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/\",\"name\":\"How to Allow Attachments in WordPress Comments? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-07-23T12:03:28+00:00\",\"dateModified\":\"2021-11-30T13:02:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-allow-attachments-in-wordpress-comments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Allow Attachments in WordPress Comments?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Allow Attachments in WordPress Comments? - KnownHost","description":"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/","og_locale":"en_US","og_type":"article","og_title":"How to Allow Attachments in WordPress Comments? - KnownHost","og_description":"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/","og_site_name":"KnownHost","article_published_time":"2021-07-23T12:03:28+00:00","article_modified_time":"2021-11-30T13:02:39+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"How to Allow Attachments in WordPress Comments?","datePublished":"2021-07-23T12:03:28+00:00","dateModified":"2021-11-30T13:02:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/"},"wordCount":306,"keywords":["blogs","cms","wordpress"],"articleSection":["WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/","name":"How to Allow Attachments in WordPress Comments? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-07-23T12:03:28+00:00","dateModified":"2021-11-30T13:02:39+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"In this article, we will walk you through how to allow attachments in your WordPress comments. If you need more help, contact KnownHost.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-allow-attachments-in-wordpress-comments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Allow Attachments in WordPress Comments?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=1335"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1335\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=1335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=1335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=1335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}