Title: WP Gallery Image Shortcode
Author: davidpotter
Published: <strong>Bélú 17, 2009</strong>
Last modified: Bélú 24, 2009

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/wpgalleryimage-shortcode.svg)

# WP Gallery Image Shortcode

 Láti ọwọ́ [davidpotter](https://profiles.wordpress.org/davidpotter/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/wpgalleryimage-shortcode.1.1.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/wpgalleryimage-shortcode/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/wpgalleryimage-shortcode/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/wpgalleryimage-shortcode/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/wpgalleryimage-shortcode/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/wpgalleryimage-shortcode/)

## Àpèjúwe

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.

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.

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 `wp_posts` table with a `post_type`
of `attachment`. The image is added to post or page within a `<div>` tag that specifies
the `wpgalleryimage_shortcode` class, which allows you to define a style for all
images added by the shortcode.

#### Parameters

 * **id** Ìtumọ̀ Yorùbá: – The ID of the image in the `wp_posts` table.
 * **name** Ìtumọ̀ Yorùbá: – The name of the image from the `post_name` field in
   the `wp_posts` table.
    The name must match exactly.
 * **title** Ìtumọ̀ Yorùbá: – The titlee of the image from the `post_title` field
   in the `wp_posts` table.
    The title must match exactly.
 * **size** Ìtumọ̀ Yorùbá: – The size of the image.
    This value is passed to the
   [`wp_get_attachment_image`](https://codex.wordpress.org/Function_Reference/wp_get_attachment_image)
   function. Valid values include:
    - `thumbnail` (default)
    - `medium`
    - `large`
    - `full`
 * **width** and **height** Ìtumọ̀ Yorùbá: – The width and height of the image to
   display.
    The most appropriate image file will be used to display the image. 
   Both must be specified or they will be ignored. If these parameters are specified,
   the **size** parameter is ignored.
 * **float** Ìtumọ̀ Yorùbá: – How to float the image on the page. Valid values include:
    - `none` (default)
    - `left`
    - `right`
 * **link** Ìtumọ̀ Yorùbá: – The URL to link to when the image is clicked on. You
   can also specify `full` to link to the full-size image.
 * **padding**, **paddingtop**, **paddingright**, **paddingbottom**, **paddingleft**
   Ìtumọ̀ Yorùbá: – The amount of padding around the image.
    If floating left, defaults
   to `10px` on the right. If floating right, defaults to `10px` on the left.

#### Examples

> [wpgalleryimage id=”19Ìtumọ̀ Yorùbá: ″]
> [wpgalleryimage name=”my-logo”]
> [wpgalleryimage title=”My Logo”]
> [wpgalleryimage name=”my-logo” size=”medium”]
> [wpgalleryimage name=”my-logo” width=”100Ìtumọ̀ Yorùbá: ″ height=”100Ìtumọ̀ Yorùbá:″]
> [wpgalleryimage name=”my-logo” float=”right”]
> [wpgalleryimage name=”my-logo” link=”full”]
> [wpgalleryimage name=”my-logo” link=”http://www.example.com/”]
> [wpgalleryimage name=”my-logo” paddingbottom=”10px”]

## Ìgbéwọlẹ̀

 1. Download the `wpgalleryimage-shortcode.zip` file.
 2. Unzip the zip file and copy the contents to a folder below `/wp-content/plugins`.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Place the `[wpgalleryimage]` shortcode in your posts and pages.

## FAQ

  How do I display an image without a link?

Omit the `link` parameter. A link is only added if you specify the `link` parameter.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“WP Gallery Image Shortcode” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí
ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ davidpotter ](https://profiles.wordpress.org/davidpotter/)

[Túmọ̀ “WP Gallery Image Shortcode” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/wpgalleryimage-shortcode)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/wpgalleryimage-shortcode/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/wpgalleryimage-shortcode/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/wpgalleryimage-shortcode/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/wpgalleryimage-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.1

 * Added support for specifying the image by title.
 * Fixed the attachment query to be more reliable.

#### 1.0

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 17 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 2.5 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **2.8.5**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/wpgalleryimage-shortcode/)
 * Àwọn àmì
 * [gallery](https://yor.wordpress.org/plugins/tags/gallery/)[images](https://yor.wordpress.org/plugins/tags/images/)
   [shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/wpgalleryimage-shortcode/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/wpgalleryimage-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wpgalleryimage-shortcode/reviews/)

## Àwọn Olùkópa

 *   [ davidpotter ](https://profiles.wordpress.org/davidpotter/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/wpgalleryimage-shortcode/)