Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var passObject = {};
- $.ajax({
- url:"<?php bloginfo('template_directory'); ?>/inc/galleries.php",
- type: 'POST',
- data: passObject,
- success: function(resp) {
- $('#photos').append(resp);
- }
- });
- <div class="photos">
- <h1>Photo Gallery</h1>
- <?php if( have_rows('gallery') ): ?>
- <?php while( have_rows('gallery') ): the_row();
- // vars
- $photo = get_sub_field('photos');
- ?>
- <div class="image"><img src="<?php echo $photo['sizes']['gallery-thumb']; ?>" alt="<?php echo $photo['alt']; ?>" /></div>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement