fix link to attachment images in carroussel
This commit is contained in:
parent
882e1122ae
commit
229c22e61f
|
@ -82,7 +82,7 @@
|
||||||
<div class="single-item-collection--attachments">
|
<div class="single-item-collection--attachments">
|
||||||
<?php foreach ( $attachments as $attachment ) { ?>
|
<?php foreach ( $attachments as $attachment ) { ?>
|
||||||
<div class="single-item-collection--attachments-file">
|
<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
|
<?php
|
||||||
echo wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments' );
|
echo wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments' );
|
||||||
echo get_the_title( $attachment->ID );
|
echo get_the_title( $attachment->ID );
|
||||||
|
|
Loading…
Reference in New Issue