Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#6468 closed enhancement (invalid)

Gallery should have an option to skip medium sized image

Reported by: mnogueir Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Gallery Keywords: gallery, thumbnail
Focuses: Cc:


There should be an option in gallery shortcode to bypass the medium sized image, linking the thumbnail directly to the image. This would be most useful for those who use Lightbox (or alikes) to display the images. Thanks.

Change History (4)

#1 @mnogueir
10 years ago

Just found this info somewhere:

edit media.php in the wp-includes dir:

The line number 394 is as follows in 2.5:

$link = wp_get_attachment_link($id, $size, true);

change it to:

$link = wp_get_attachment_link($id, $size, false);

and it should work!

So, couldn't this be coded as an admin option? Thanks

#2 @janeforshort
10 years ago

  • Milestone changed from 2.7 to 2.8

#3 @ryan
9 years ago

  • Component changed from General to Gallery
  • Milestone changed from 2.8 to 2.9
  • Owner anonymous deleted

#4 @DD32
9 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I believe this has been implemented in 2.7? the gallery options section?

Note: See TracTickets for help on using tickets.