oikos get attachment link filter

March 3rd, 2015

oikos get attachment link filter

This fixes a flaw in the WP gallery shortcode. The problem is that when you make a gallery, and you set link to “file”, it links to the original. That might be a 10M jpeg. This function links to the large instead of the original. On every site with galleries, I install lightbox and this nice little filter.

Leave a Reply

Your email address will not be published. Required fields are marked *