Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2.                             $gallery_ids = $gallery['ids'];
  3.                             $img_ids = explode(",",$gallery_ids);              
  4.                             foreach( $img_ids AS $img_id ){
  5.                             $image_src = wp_get_attachment_image_src($img_id,'');
  6.                             $params = array( 'width' => 680, 'height' => 453 );
  7.                             $image = bfi_thumb( $image_src[0], $params );
  8.                         ?>
  9.                         <div class="item"><img src="<?php echo $image; ?>" alt=""></div>
  10.                         <?php }?>  
  11.                     </div>
  12.                 <?php } }else{ ?>
  13.                     <?php if ( has_post_thumbnail() ) {
  14.                         $params = array( 'width' => 680, 'height' => 453 );
  15.                         $thumbnails = bfi_thumb( wp_get_attachment_url(get_post_thumbnail_id()), $params );
  16.                     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement