Title: Gallery shortcode questions
Last modified: August 19, 2016

---

# Gallery shortcode questions

 *  [tomleads](https://wordpress.org/support/users/tomleads/)
 * (@tomleads)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcode-questions/)
 * Hello.
 * I am using the gallery shortcode and edited the includes/media.php to generate
   the code I want.
 * Two questions:
    1 – can I display just some of the images I uploaded? For example,
   I upload some images to a page for custom fields to use and I don’t want them
   to display in the gallery.
 * 2 – the gallery links to the file(image), not the attachment, and potentially
   the images could be very big. Can I get the gallery to link to the ‘large’ or‘
   mediuim’ version of the uploaded gallery image?
 * here is what I am using at the moment in my template:
 *     ```
       <?php echo do_shortcode('[gallery size="thumbnail" itemtag="ul" icontag="li" captiontag="p" link="file"]'); ?>
       ```
   
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [tomleads](https://wordpress.org/support/users/tomleads/)
 * (@tomleads)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcode-questions/#post-1240887)
 * Hi again 🙂 Just a shamless bump.

Viewing 1 replies (of 1 total)

The topic ‘Gallery shortcode questions’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [photo](https://wordpress.org/support/topic-tag/photo/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [tomleads](https://wordpress.org/support/users/tomleads/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/gallery-shortcode-questions/#post-1240887)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
