{"id":9005,"date":"2010-05-01T15:43:09","date_gmt":"2010-05-01T15:43:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-media-category\/"},"modified":"2010-05-01T23:59:33","modified_gmt":"2010-05-01T23:59:33","slug":"wp-media-category","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-media-category\/","author":6001738,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.1b","stable_tag":"0.2.1b","tested":"3.0.5","requires":"2.9","requires_php":"","requires_plugins":"","header_name":"WP Media Category","header_author":"Thiago Belem","header_description":"","assets_banners_color":"","last_updated":"2010-05-01 23:59:33","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/wp-media-category\/","header_author_uri":"http:\/\/thiagobelem.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3578,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.2.1b":"<p>The version 0.1.x has bugs.. Update to see the plugin running smoothly! :)<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.1.2","0.1.3","0.2.1b","0.2b"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539244","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539244","resolution":"1","location":"plugin"}},"screenshots":{"1":"The category select field is inserted at the end of the \"Edit media\" page","2":"When you select a category that has childs a new select input will appear"}},"plugin_section":[],"plugin_tags":[1346,610,89,84,85],"plugin_category":[50,57],"plugin_contributors":[92479],"plugin_business_model":[],"class_list":["post-9005","plugin","type-plugin","status-closed","hentry","plugin_tags-attachments","plugin_tags-categories","plugin_tags-category","plugin_tags-media","plugin_tags-uploads","plugin_category-media","plugin_category-taxonomy","plugin_contributors-tiutalk","plugin_committers-tiutalk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-media-category.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-media-category\/trunk\/screenshot-1.png?rev=1539244","caption":"The category select field is inserted at the end of the \"Edit media\" page"},{"src":"https:\/\/ps.w.org\/wp-media-category\/trunk\/screenshot-2.png?rev=1539244","caption":"When you select a category that has childs a new select input will appear"}],"raw_content":"<!--section=description-->\n<p>Include the category taxonomy to your media files.<\/p>\n\n<p>No configuration needed: just <em>Plug&amp;Play<\/em>!<\/p>\n\n<p>This is a functional beta release! :)<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the extracted plugin folder and contained files to your <code>\/wp-content\/plugins\/<\/code> directory using FTP<\/li>\n<li>Activate the plugin through the '<strong>Plugins<\/strong>' menu in WordPress<\/li>\n<li>Go to your <strong>Media Library<\/strong> and edit one file or upload a new one<\/li>\n<\/ol>\n\n<p>Check the screenshots tab to see where the new field'll appear.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>You can list all the media files from a category using the <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/get_posts\">get_posts()<\/a> WordPress function on your theme files.<\/p>\n\n<p>Here's an example of usage:<\/p>\n\n<pre><code>&lt;?php\n\/\/ Create an array with all medias from category #2 \n$args = array(\n    'post_type' =&gt; 'attachment', \/\/ search only attachments (media files)\n    'cat' =&gt; '2', \/\/ from category #2\n    'numberposts' =&gt; -1 \/\/ unlimited results\n);\n$medias = get_posts($args);\n\/\/ Now you can loop through $medias array and list the files! :)\n?&gt;\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>What taxonomy this plugin use?<\/dt>\n<dd><p>This plugin use the <code>category<\/code> taxonomy<\/p><\/dd>\n<dt>How many categories a media can belongs to?<\/dt>\n<dd><p>Until now, the media can be added to <strong>only one<\/strong> category.<\/p>\n\n<p>On future versions i'll add support to more than one category.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.1b<\/h4>\n\n<ul>\n<li>jQuery 1.4.2 include fix<\/li>\n<\/ul>\n\n<h4>0.2b<\/h4>\n\n<ul>\n<li>Beta release<\/li>\n<\/ul>\n\n<h4>0.1.2 &amp; 0.1.3<\/h4>\n\n<ul>\n<li>jQuery 1.4.2 addition<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Small bugfix<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release<\/li>\n<li>Translations: en-US &amp; pt-BR<\/li>\n<\/ul>","raw_excerpt":"Include the category taxonomy to your media files.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9005","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=9005"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tiutalk"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9005"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9005"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9005"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9005"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9005"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}