{"id":7291,"date":"2009-11-17T12:26:42","date_gmt":"2009-11-17T12:26:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wpgalleryimage-shortcode\/"},"modified":"2009-11-24T05:12:19","modified_gmt":"2009-11-24T05:12:19","slug":"wpgalleryimage-shortcode","status":"publish","type":"plugin","link":"https:\/\/es-ar.wordpress.org\/plugins\/wpgalleryimage-shortcode\/","author":233134,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"2.8.5","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"WP Gallery Image Shortcode","header_author":"David Potter","header_description":"","assets_banners_color":"","last_updated":"2009-11-24 05:12:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/dpotter.net\/Technical\/wordpress\/wp-plugins\/wpgalleryimage_shortcode\/","header_author_uri":"http:\/\/dpotter.net\/Technical\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3518,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[210,163,80],"plugin_category":[43,50],"plugin_contributors":[92768],"plugin_business_model":[],"class_list":["post-7291","plugin","type-plugin","status-publish","hentry","plugin_tags-gallery","plugin_tags-images","plugin_tags-shortcode","plugin_category-customization","plugin_category-media","plugin_contributors-davidpotter","plugin_committers-davidpotter"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpgalleryimage-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Lets you add an image to a post or page from the WordPress gallery on your site using a shortcode.  Simply add the wppgalleryimage shortcode and specify the image you want to add by name or ID.<\/p>\n\n<p>When you insert an image using the built-in WordPress editor, the full URL to the image on your site is inserted into the page or post. Using the shortcode, all you need to specify is the name or ID of the image and the URL is generated automatically.<\/p>\n\n<p>When an image is uploaded to the gallery, the file is stored under wp-content\/uploads and metadata about the image is stored in the <code>wp_posts<\/code> table with a <code>post_type<\/code> of <code>attachment<\/code>.  The image is added to post or page within a <code>&lt;div&gt;<\/code> tag that specifies the <code>wpgalleryimage_shortcode<\/code> class, which allows you to define a style for all images added by the shortcode.<\/p>\n\n<h4>Parameters<\/h4>\n\n<ul>\n<li><p><strong>id<\/strong> - The ID of the image in the <code>wp_posts<\/code> table.<\/p><\/li>\n<li><p><strong>name<\/strong> - The name of the image from the <code>post_name<\/code> field in the <code>wp_posts<\/code> table.\nThe name must match exactly.<\/p><\/li>\n<li><p><strong>title<\/strong> - The titlee of the image from the <code>post_title<\/code> field in the <code>wp_posts<\/code> table.\nThe title must match exactly.<\/p><\/li>\n<li><p><strong>size<\/strong> - The size of the image.\nThis value is passed to the\n<a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_get_attachment_image\" title=\"Function Reference\/wp get attachment image\"><code>wp_get_attachment_image<\/code><\/a>\nfunction.\nValid values include:<\/p>\n\n<ul>\n<li><code>thumbnail<\/code> (default)<\/li>\n<li><code>medium<\/code><\/li>\n<li><code>large<\/code><\/li>\n<li><code>full<\/code><\/li>\n<\/ul><\/li>\n<li><p><strong>width<\/strong> and <strong>height<\/strong> - The width and height of the image to display.\nThe most appropriate image file will be used to display the image.\nBoth must be specified or they will be ignored.\nIf these parameters are specified, the <strong>size<\/strong> parameter is ignored.<\/p><\/li>\n<li><p><strong>float<\/strong> - How to float the image on the page.  Valid values include:<\/p>\n\n<ul>\n<li><code>none<\/code> (default)<\/li>\n<li><code>left<\/code><\/li>\n<li><code>right<\/code><\/li>\n<\/ul><\/li>\n<li><p><strong>link<\/strong> - The URL to link to when the image is clicked on.  You can also specify <code>full<\/code> to link to the full-size image.<\/p><\/li>\n<li><p><strong>padding<\/strong>, <strong>paddingtop<\/strong>, <strong>paddingright<\/strong>, <strong>paddingbottom<\/strong>, <strong>paddingleft<\/strong> - The amount of padding around the image.\nIf floating left, defaults to <code>10px<\/code> on the right.\nIf floating right, defaults to <code>10px<\/code> on the left.<\/p><\/li>\n<\/ul>\n\n<h4>Examples<\/h4>\n\n<blockquote>\n  <p>[wpgalleryimage id=\"19\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\"]<\/p>\n  \n  <p>[wpgalleryimage title=\"My Logo\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" size=\"medium\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" width=\"100\" height=\"100\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" float=\"right\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" link=\"full\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" link=\"http:\/\/www.example.com\/\"]<\/p>\n  \n  <p>[wpgalleryimage name=\"my-logo\" paddingbottom=\"10px\"]<\/p>\n<\/blockquote>\n\n<!--section=installation-->\n<ol>\n<li>Download the <code>wpgalleryimage-shortcode.zip<\/code> file.<\/li>\n<li>Unzip the zip file and copy the contents to a folder below <code>\/wp-content\/plugins<\/code>.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Place the <code>[wpgalleryimage]<\/code> shortcode in your posts and pages.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I display an image without a link?<\/dt>\n<dd><p>Omit the <code>link<\/code> parameter.  A link is only added if you specify the <code>link<\/code> parameter.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added support for specifying the image by title.<\/li>\n<li>Fixed the attachment query to be more reliable.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Adds the [wpgalleryimage] shortcode for inserting into a post or a page one of the images you uploaded into your WordPress gallery.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7291"}],"author":[{"embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/davidpotter"}],"wp:attachment":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7291"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7291"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7291"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7291"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7291"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}