Title: Gallery Shortcode
Last modified: August 19, 2016

---

# Gallery Shortcode

 *  [apaimagixdk](https://wordpress.org/support/users/apaimagixdk/)
 * (@apaimagixdk)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/)
 * Hi,
 * I have added the Gallery Shortcode to single.php like this…
 * `<?php echo do_shortcode('[gallery columns="12" size="thumbnail" link="file" 
   itemtag="div" icontag="span" captiontag="p" ]'); ?>`
 * When I click a thumbnail it’s the original uploaded image size that pops up on
   the screen. How do I make it the ‘Large’ size as defined under ‘Media’.
 * Hope someone can help!?
 * Best,
    Anders

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685525)
 * Offhand, this does not appear to be possible. The images may need to be resized
   before uploading. If your ultimate goal is only display “large” as the maximum
   size, it’ll save space in the long run.
 *  Thread Starter [apaimagixdk](https://wordpress.org/support/users/apaimagixdk/)
 * (@apaimagixdk)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685530)
 * Sorry – I just realized that I should say I am using Flexible Lightbox
    - [http://web-argument.com/flexible-lightbox/](http://web-argument.com/flexible-lightbox/)
    -  to show the images on screen when a gallery thumbnail is clicked. It’s the
      lightbox effect that comes up in the original filesize.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685531)
 * Try using WordPress’ native galleries instead.
 * Create or edit the page and then click the “Add an image” button (it looks like
   a tiny picture and it’s first from the left next to “Upload/Insert” above the
   post edit area. You can use this to upload the picture and WordPress will automatically
   generate the various sizes (including thumbnails). Now, it’s important to note
   that once you add an image via this method while writing or editing a post/page,
   it will be “assigned” to the post/page. Once you have uploaded all of the desired
   pictures, click the “Add an image” button again and go to the “Gallery” tab. 
   Set your desired settings and click the “Insert Gallery” button at the bottom
   to add the gallery to your page.
 * [This document](http://codex.wordpress.org/User:Esmi/The_WordPress_Gallery) describes
   the whole process in more detail.
 * Once you have it setup, you can use [jQuery Lightbox For Native Galleries](http://wordpress.org/extend/plugins/jquery-lightbox-for-native-galleries/)
   to achieve the same effect.
 *  Thread Starter [apaimagixdk](https://wordpress.org/support/users/apaimagixdk/)
 * (@apaimagixdk)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685532)
 * Hi James,
 * That’s actually exactly what I am doing. Allthough instead of inserting the gallery
   with the “Insert Gallery” button I have put the Gallery Shortcode into my template.
   This way my client can’t do it wrong and I have better control of the layout.
 * Anders
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685533)
 * Have you tried the [jQuery Lightbox For Native Galleries](http://wordpress.org/extend/plugins/jquery-lightbox-for-native-galleries/)
   plugin? I’ve had no trouble with it on any of my sites.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Gallery Shortcode’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/gallery-shortcode-2/#post-1685533)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
