{"id":1079,"date":"2013-07-10T12:52:39","date_gmt":"2013-07-10T11:52:39","guid":{"rendered":"http:\/\/blog.repsaj.nl\/?p=1079"},"modified":"2013-07-10T12:52:39","modified_gmt":"2013-07-10T11:52:39","slug":"content-type-is-in-use-when-editing-document-set","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2013\/07\/content-type-is-in-use-when-editing-document-set\/","title":{"rendered":"&#8220;Content type is in use&#8221; when editing Document Set"},"content":{"rendered":"<p>I ran into a weird problem today, when editing a document set. I created my own content type inheriting from the default Document Set. I added a new content type to the set and wanted to delete the default &#8220;Document&#8221; reference. I got an error telling me: &#8220;Content Type is in use&#8221;. Strange, since I hadn&#8217;t even deployed this Document Set type to any library.<\/p>\n<p>After some fiddling around I finally found out what the problem was. Under &#8220;Default Content&#8221;, the drop down box will have &#8220;Document&#8221; selected. And even when you didn&#8217;t specify a file as default content, that still counts as &#8220;in use&#8221;. So simply change the dropdown selection to your own custom content type and voila: you can now remove the default document from the allowed content types list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into a weird problem today, when editing a document set. I created my own content type inheriting from the default Document Set. I added a new content type to the set and wanted to delete the default &#8220;Document&#8221; reference. I got an error telling me: &#8220;Content Type is in use&#8221;. Strange, since I<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[7,90],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-hp","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/1079"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=1079"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/1079\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=1079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=1079"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=1079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}