Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'taxonomy' => 'gallery_category',
- 'post_type' => 'director'
- );
- $the_query = new WP_Query($args);
- ?>
- <?php if ($the_query->have_posts() ): while ($the_query->have_posts() ) :$the_query->the_post(); ?>
- <!-- <div class="director">
- <a href="<?php the_permalink(); ?>" rel="bookmark">
- <?php the_title(); ?>
- </a>
- <?php the_post_thumbnail(); ?>
- <?php the_field('director_bio'); ?>
- <?php the_field('director_image'); ?>
- </div> -->
- <div id="projects" class="clearfix">
- <div class="thumbs masonry" style="margin: 0 auto;max-width: 1200px;">
- <div class="project small">
- <div class="inside">
- <a href="<?php the_permalink(); ?>" rel="bookmark" >
- <?php the_post_thumbnail("<?php the_post_thumbnail( 'full' ); ?>", array('class' => '', 'alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?>
- <span class="title"><span><?php the_title(); ?></span></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="director">
- <article class="director_image">
- <img src="<?php the_field('director_image'); ?>">
- </article>
- <article class="director_bio">
- <h2><?php the_title(); ?></h2>
- <p><?php the_field('director_bio'); ?></p>
- </article>
- </div>
- <div id="projects" class="clearfix">
- <div class="thumbs masonry" style="margin: 0 auto;max-width: 1200px;">
- <div class="project small">
- <div class="inside">
- <a href="<?php the_permalink(); ?>" rel="bookmark" >
- <?php the_post_thumbnail("<?php the_post_thumbnail( 'full' ); ?>", array('class' => '', 'alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?>
- <span class="title"><span><?php the_title(); ?></span></span>
- </a>
- </div>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
Add Comment
Please, Sign In to add comment