WordPress Gallery only linking to attachment
Just been exploring this – try changing the ‘link to’ ‘attachment page’ and then back to ‘media file’ again in the dropdown.
I think the gallery settings ‘Link to’ isn’t applying the setting initially shown, changing the dropdown in any way then gets the link setting properly applied. Once the gallery has a setting it then seems to work ok.
Create a new gallery, don’t touch the ‘Link to’. Gallery shortcode has no link=file or link=post.
Create a new gallery, change ‘Link to’ setting in any way. Gallery shortcode has link=file or link=post as appropriate.
Can you confirm my findings?
Changed from media to attachment, saved, then back to media file and saved. It is now linking to the media file correctly.
I don’t think you even need the first save: making the dropdown show attachment and then media file, then save, seems sufficient.
I’ve searched and found no record of this bug, so I’ve submitted a ticket.
Thanks. I didn’t see a ticket either, but I thought I’d come to the forums first to see if it was me or not. I even tried it in the latest beta, and the problem was still there.
Thanks for the help.
Confirmed that it’s a problem for me as well. You can also manually go into source view and just add link=”file” to your gallery shortcode for now as a short term fix.
Yup, I’m experiencing this as well. Anyone know a fix? I know i can simply go switch to attachment and then back to file but I need it to default that way. I work with multiple people on a blog and I can’t seem to make them all do this. They forget, etc. thanks
Having this issue as well.
Alternate solution to the source view fix @technabob mentioned…switch the link dropdown to ‘Attachment’, update, switch it back to ‘Media File’, update. Voila.
Bug needs fixing!
- The topic ‘WordPress Gallery only linking to attachment’ is closed to new replies.