Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress Gallery Output
$image_output = "<a href='" . wp_get_attachment_url( $id ) . "' data-gall='gallery-{$instance}'> " . wp_get_attachment_image($id, $atts['size'], false, $attr ) . "</a>";
$image_output = "<a href='" . wp_get_attachment_url( $id ) . "'> " . wp_get_attachment_image($id, $atts['size'], false, $attr ) . "</a>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment