fix link to attachment images in carroussel

This commit is contained in:
leogermani 2019-08-28 11:36:33 -03:00
parent 882e1122ae
commit 229c22e61f
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@
<div class="single-item-collection--attachments">
<?php foreach ( $attachments as $attachment ) { ?>
<div class="single-item-collection--attachments-file">
<a href="<?php echo $attachment->guid; ?>" data-toggle="lightbox" data-gallery="example-gallery">
<a href="<?php echo wp_get_attachment_url($attachment->ID, 'large'); ?>" data-toggle="lightbox" data-gallery="example-gallery">
<?php
echo wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments' );
echo get_the_title( $attachment->ID );