{"id":33871,"date":"2015-01-12T01:26:57","date_gmt":"2015-01-12T01:26:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/my-upload-images\/"},"modified":"2017-03-14T09:03:41","modified_gmt":"2017-03-14T09:03:41","slug":"my-upload-images","status":"publish","type":"plugin","link":"https:\/\/ja.wordpress.org\/plugins\/my-upload-images\/","author":2922066,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.1","stable_tag":"1.4.1","tested":"4.7.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"My Upload Images","header_author":"Mizuho Ogino","header_description":"","assets_banners_color":"9c9893","last_updated":"2017-03-14 09:03:41","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/web.contempo.jp\/donate?mui","header_plugin_uri":"http:\/\/web.contempo.jp\/weblog\/tips\/p617","header_author_uri":"http:\/\/web.contempo.jp\/","rating":5,"author_block_rating":0,"active_installs":400,"downloads":6198,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1065526","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1564002","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.8","1.3.9","1.4.0","1.4.1"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1613917","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1613917","resolution":"1","location":"plugin"}},"screenshots":{"1":"Select post types you\u2019d like to display metabox.","2":"Just upload and sort images."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[225,2009,133,6592,259],"plugin_category":[50],"plugin_contributors":[80347],"plugin_business_model":[],"class_list":["post-33871","plugin","type-plugin","status-publish","hentry","plugin_tags-cms","plugin_tags-custom-field","plugin_tags-image","plugin_tags-media-uploader","plugin_tags-upload","plugin_category-media","plugin_contributors-fishpie","plugin_committers-fishpie"],"banners":{"banner":"https:\/\/ps.w.org\/my-upload-images\/assets\/banner-772x250.jpg?rev=1564002","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/my-upload-images\/assets\/icon-128x128.jpg?rev=1065526","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/my-upload-images\/trunk\/screenshot-1.jpg?rev=1613917","caption":"Select post types you\u2019d like to display metabox."},{"src":"https:\/\/ps.w.org\/my-upload-images\/trunk\/screenshot-2.jpg?rev=1613917","caption":"Just upload and sort images."}],"raw_content":"<!--section=description-->\n<p>This plugin create the metabox with the media uploader into any post types. In the metabox, You can drag images into any order you like. The IDs and the order of images will put on record in the customfield of your posts as array.<\/p>\n\n<h4>Attention<\/h4>\n\n<p>Available only for WordPress 4.0+.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the \u2018my-upload-images\u2019 folder into your plugins folder.<\/li>\n<li>Activate the plugin via the \u2018Plugins\u2018 admin page. The plugin requires the setup of selecting post_types which you want to add metabox.<\/li>\n<\/ol>\n\n<h4>Example usage<\/h4>\n\n<p>The image IDs are stored in [\u2018my_upload_images\u2019] custom field. When to output the IDs into your template file, write codes like below.<\/p>\n\n<p>Output images and links.\n    ID, 'my_upload_images', true );\n    if ( $my_upload_images ): foreach( $my_upload_images as $img_id ):\n     $full_src = wp_get_attachment_image_src ($img_id,'fullsize');\n     if ( !$full_src ) continue;\n     echo \n     '<a href=\"'.$full_src[0].'\">'.wp_get_attachment_image ($img_id,'thumbnail').'<\/a>'.\"\\n\";\n    endforeach; endif; \n    ?&gt;<\/p>\n\n<p>Output images and links with attributes.\n    ID, 'my_upload_images', true );\n    $slider = '';\n    if ( $my_upload_images ): \n     foreach( $my_upload_images as $img_id ):\n     $full_src = wp_get_attachment_image_src ($img_id,'fullsize');\n     if ( !$full_src ) continue;\n     $file = get_post( $img_id );\n     $img_title = $file-&gt;post_title; \/\/ title\n     $img_caption = $file-&gt;post_excerpt; \/\/ caption\n     $img_desc = $file-&gt;post_content; \/\/ desctiprion\n     $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); \/\/ alt\n     $thumb_src = wp_get_attachment_image_src ($img_id,'thumbnail');\n     $slider .= \n     \"\\t\".'<li>'.\"\\n\".\n     \"\\t\\t\".'<a>'.\"\\n\".\n     \"\\t\\t\\t\".''.\"\\n\".\n     ( $img_title ? \"\\t\\t\\t\".''.$img_title.''.\"\\n\" : '' ).\n     ( $img_desc ? \"\\t\\t\\t\".''.wpautop( $img_caption ).''.\"\\n\" : '' ).\n     \"\\t\\t\".'<\/a>'.\"\\n\".\n     \"\\t\".'<\/li>'.\"\\n\";\n     endforeach; \n     echo '<ul>'.\"\\n\".$slider.'<\/ul>'.\"\\n\";\n    endif; \n    ?&gt;<\/p>\n\n<h4>Attention<\/h4>\n\n<p>The custom field doesn\u2019t have multiple values, it just has become an array in a single value. When you call them with \u2018get_post_meta\u2019 function, do not set the third parameter to \u2018false\u2019.<\/p>\n\n<!--section=changelog-->\n<h4>1.4.1<\/h4>\n\n<p>14.Mar.2017. Fixed behavior of custom wp.media.<\/p>\n\n<h4>1.4.0<\/h4>\n\n<p>25.Feb.2017. Add image metadata editor. Fix TypeError of wp.media.js.<\/p>\n\n<h4>1.3.9<\/h4>\n\n<p>29.Dec.2016. Fix a conflict of edit_form_after_title.<\/p>\n\n<h4>1.3.8<\/h4>\n\n<p>12.May.2016. Add limit max number of registerable images. Fix display on preview. Change Text Domain.<\/p>\n\n<h4>1.3.7<\/h4>\n\n<p>16.Nov.2015. Add edit buttons on images. Rename functions to avoid name conflict. Some bug fixes, accessibility improvements and translation updates.<\/p>\n\n<h4>1.3.6<\/h4>\n\n<p>18.Oct.2015. Bug fix.<\/p>\n\n<h4>1.3.5<\/h4>\n\n<p>11.Oct.2015. Bug fix.<\/p>\n\n<h4>1.3.4<\/h4>\n\n<p>12.Sep.2015. Add caption on thumbnail. Unite multiple option values into an array.<\/p>\n\n<h4>1.3.3<\/h4>\n\n<p>07.June.2015. Add selector of position of metabox.<\/p>\n\n<h4>1.3.2<\/h4>\n\n<p>10.May.2015. Auto generate post thumbnail by plugin.<\/p>\n\n<h4>1.3.1<\/h4>\n\n<p>15.Jan.2015. Fixed Javascript.<\/p>\n\n<h4>1.3<\/h4>\n\n<p>10.Jan.2015. First public version Release.<\/p>\n\n<h4>1.0<\/h4>\n\n<p>25.Apr.2014. Initial Release.<\/p>","raw_excerpt":"Create metabox with media uploader. It allows to upload and sort images in any post_type.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33871"}],"author":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fishpie"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33871"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33871"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33871"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33871"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33871"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}