WordPress plugin intelligence profile

WP Gallery Image Shortcode

Adds the [wpgalleryimage] shortcode for inserting into a post or a page one of the images you uploaded into your WordPress gallery.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 2.8
Current version1.1
WordPress coverageTested up to WordPress 2.8
Minimum stackWP 2.5 · PHP —
Directory statusactive
Last directory update24 Nov 200916y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP Gallery Image Shortcode version 1.1 as active, updated 16y ago and tested up to WordPress 2.8.

Overview

About this plugin

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 – The ID of the image in the wp_posts table.

-

name – The name of the image from the post_name field in the wp_posts table.

The name must match exactly.

-

title – The titlee of the image from the post_title field in the wp_posts table.

The title must match exactly.

-

size – The size of the image.

This value is passed to the

wp_get_attachment_image

function.

Valid values include:

  • thumbnail (default)
  • medium
  • large
  • full

-

width and height – 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 – How to float the image on the page. Valid values include:

  • none (default)
  • left
  • right

-

link – 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 – 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″]

[wpgalleryimage name=”my-logo”]

[wpgalleryimage title=”My Logo”]

[wpgalleryimage name=”my-logo” size=”medium”]

[wpgalleryimage name=”my-logo” width=”100″ height=”100″]

[wpgalleryimage name=”my-logo” float=”right”]

[wpgalleryimage name=”my-logo” link=”full”]

com/”]

[wpgalleryimage name=”my-logo” paddingbottom=”10px”]

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • gallery
  • images
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 2.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 2.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to2.8
Minimum requirementsWordPress 2.5 · PHP not listed
Update activity24 Nov 200916y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.