Support » Fixing WordPress » gallery media file link not working as default

  • This issue has been rather annoying to my users.

    when making a gallery the default setting of linking to “media file” does not work. you have to set it to attachment page then set it back to media file, and its often easy to forget. once submitted it goes not only to our site but other sites like tumblr with the attachment page instead of the image.

    Is this a known bug or can i fix this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same problem here, could do with this fixing!

    Getting the same bug here!

    WordPress 3.5.1

    The fix seems to be setting the gallery to “attachment page” and then back to “media file” as suggested in the first post.

    This a bug in WordPress js not generating the file attribute. it’s on trac

    Hopefully it gets fixed on 3.5.2

    This bug should be fixed in the next WordPress update but, for now, you have two options that might work:

    1. If you have been using the Text editor to edit your Posts & Pages then locate the [gallery] shortcode and amend it to [gallery link="file"]

    2. Try editing the relevant Posts/Pages and creating the galleries again but, this time, toggle the “Link To” dropdown from Media File to Attachment page” and back again.

    Wow esmi, supercool. Using the first option… working great. Thanks a lot.

    any other fix to force link to media file as default?

    @erikdana: Gallery is by default linked to media files BUT when you insert the gallery the shortcode doesn’t format properly (doesn’t add link=”file”) so you have to go back and forth between Media File & Attachment page.Afterwards the shortcode gets updated and works just as it should.
    Side note: untill the WP update fixes it, i don’t mind toggling between the two options to get it working but my client does 😛 Maybe i should make “Attachment page” the default then he should toggle only once?

    Try the cleaner gallery plugin. In the settings you can select the image file as the link and it works.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘gallery media file link not working as default’ is closed to new replies.