Guest User

Untitled

a guest
Mar 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php
  2. $args = array(
  3. 'taxonomy' => 'gallery_category',
  4. 'post_type' => 'director'
  5. );
  6.  
  7. $the_query = new WP_Query($args);
  8. ?>
  9. <?php if ($the_query->have_posts() ): while ($the_query->have_posts() ) :$the_query->the_post(); ?>
  10.  
  11. <!-- <div class="director">
  12. <a href="<?php the_permalink(); ?>" rel="bookmark">
  13. <?php the_title(); ?>
  14. </a>
  15. <?php the_post_thumbnail(); ?>
  16. <?php the_field('director_bio'); ?>
  17. <?php the_field('director_image'); ?>
  18. </div> -->
  19.  
  20. <div id="projects" class="clearfix">
  21. <div class="thumbs masonry" style="margin: 0 auto;max-width: 1200px;">
  22. <div class="project small">
  23. <div class="inside">
  24. <a href="<?php the_permalink(); ?>" rel="bookmark" >
  25. <?php the_post_thumbnail("<?php the_post_thumbnail( 'full' ); ?>", array('class' => '', 'alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?>
  26. <span class="title"><span><?php the_title(); ?></span></span>
  27. </a>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32.  
  33. <?php endwhile; ?>
  34.  
  35. <?php while (have_posts()) : the_post(); ?>
  36.  
  37. <div class="director">
  38. <article class="director_image">
  39. <img src="<?php the_field('director_image'); ?>">
  40. </article>
  41. <article class="director_bio">
  42. <h2><?php the_title(); ?></h2>
  43. <p><?php the_field('director_bio'); ?></p>
  44. </article>
  45. </div>
  46.  
  47. <div id="projects" class="clearfix">
  48. <div class="thumbs masonry" style="margin: 0 auto;max-width: 1200px;">
  49. <div class="project small">
  50. <div class="inside">
  51. <a href="<?php the_permalink(); ?>" rel="bookmark" >
  52. <?php the_post_thumbnail("<?php the_post_thumbnail( 'full' ); ?>", array('class' => '', 'alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?>
  53. <span class="title"><span><?php the_title(); ?></span></span>
  54. </a>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59.  
  60. <?php endwhile; ?>
Add Comment
Please, Sign In to add comment