Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a rel="nofollow" href="" class="fancybox" title="" rel="gallery">
  2.  
  3. <?php get_the_ID(),
  4.         'post_type' => 'attachment',
  5.         'post_mime_type' => 'image'
  6.     ));
  7.    
  8.     foreach ( $attachments as $attachment_id => $attachment ) {
  9.         echo '<a rel="nofollow" href="';
  10.         echo '' . wp_get_attachment_url( $attachment_id ) . '" title="" rel="gallery">';
  11.         echo '';
  12.     }
  13. ?>
Advertisement
RAW Paste Data Copied
Advertisement