Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $gallery_ids = $gallery['ids'];
- $img_ids = explode(",",$gallery_ids);
- foreach( $img_ids AS $img_id ){
- $image_src = wp_get_attachment_image_src($img_id,'');
- $params = array( 'width' => 680, 'height' => 453 );
- $image = bfi_thumb( $image_src[0], $params );
- ?>
- <div class="item"><img src="<?php echo $image; ?>" alt=""></div>
- <?php }?>
- </div>
- <?php } }else{ ?>
- <?php if ( has_post_thumbnail() ) {
- $params = array( 'width' => 680, 'height' => 453 );
- $thumbnails = bfi_thumb( wp_get_attachment_url(get_post_thumbnail_id()), $params );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement