
    <div class="diamondswrap">
         <?php $galery = new WP_Query (array('post_type' => 'galery', 'posts_per_page' => -1, )); ?>
            <?php if($galery -> have_posts() ): ?>
            <?php while($galery -> have_posts() ) : $galery -> the_post();?>
                    <?php
                            $image_id = get_post_thumbnail_id();
                            $image_url = wp_get_attachment_image_src($image_id,350,350);
                            $image_url = $image_url[0];
                            ?>
                    <a href="<?php echo "$image_url"; ?>" class="item lightbox" rel="lightbox" data-lightbox="roadtrip" style="background: url(<?php echo "$image_url"; ?>);"></a>
                        <?php wp_reset_query();?>
                            <?php endwhile; ?>
                            <?php else : ?>
                        <h2><?php  _e('IMG NOT FOUND', 'ink'); ?></h2>
             <?php endif; ?>
</div>
