Fix thumbnail size when submission.

This commit is contained in:
Hoang Huu
2019-10-31 14:04:01 +07:00
parent 934e0e87f0
commit a1e0f7b4ab
2 changed files with 5 additions and 4 deletions

View File

@@ -36,8 +36,8 @@
<?php endif; ?>
<?php if ( isset( $galleries ) && is_array( $galleries ) ): ?>
<?php foreach ( $galleries as $src ): ?>
<div class="swiper-slide"><img src="<?php echo esc_url( $src ); ?>" alt="gallery"></div>
<?php foreach ( $galleries as $key => $src ): ?>
<div class="swiper-slide"><img src="<?php echo esc_url( wp_get_attachment_image_url( $key, 'full' ) ); ?>" alt="gallery"></div>
<?php endforeach; ?>
<?php endif; ?>