WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#6633 closed enhancement (duplicate)

Image URL in galleries can't be set to link to the image directly

Reported by: jwbats Owned by:
Milestone: Priority: low
Severity: minor Version: 2.5
Component: Gallery Keywords:
Focuses: Cc:

Description

When I make a gallery, I want the gallery to link to the images directly. The Image URL is set this way by default.

And yet, when the actual post is published, the images link to some sort of sub-post showing *yet another* medium thumbnail.

Only by clicking that can I view the actual image in its unmodified form.

Change History (7)

comment:1 jwbats6 years ago

  • Priority changed from normal to high
  • Version set to 2.5

comment:2 caesarsgrunt6 years ago

  • Component changed from General to Administration

+1. Galleries are useless (for me) without this.

comment:3 Bossy6 years ago

    edit media.php in the wp-includes dir:

    The line number 447 is as follows in 2.6.2:

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

    change it to:

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

    and it should work!


This works for me, it's just a tweak. It would be nice if this was an option by Settings.

comment:4 azaozz6 years ago

  • Priority changed from high to low
  • Severity changed from normal to minor
  • Type changed from defect to enhancement

In 2.7 we will have gallery options that will allow this.

comment:5 ryan5 years ago

  • Component changed from Administration to Gallery
  • Owner anonymous deleted

comment:6 ShaneF5 years ago

  • Milestone 2.7 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#7606 - Have this coded in this patch. Due out for 2.8.

comment:7 ShaneF5 years ago

I meant #7607.

Note: See TracTickets for help on using tickets.