Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.02 KB | None | 0 0
  1. <?php $prod_cats = get_terms('department');
  2.   foreach ($prod_cats as $prod_cat) {
  3.      $cat_name = $prod_cat->name; ?>
  4.  
  5.                     <?php $loop = new WP_Query( array( 'post_type' => 'resume', 'department' => $cat_name ) ); ?>
  6.                     <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  7.                     <div class="yui-gf">
  8.                         <div class="yui-u first">
  9.                             <h2><?php echo get_the_term_list( $post->ID, 'department', '', ' ', '' ); ?></h2>
  10.                         </div><!--// .yui-u -->
  11.                         <div class="yui-u" >
  12.                                 <div class="job">
  13.                                     <h2><?php echo get_the_term_list( $post->ID, 'organization', '', ' ', '' ); ?></h2>
  14.                                     <h3><?php the_title(); ?></h3>
  15.                                     <h4><?php echo get_the_term_list( $post->ID, 'timeperiod', '', ' ', '' ); ?></h4>  
  16.                                     <p><?php the_content(); ?></p>
  17.                                 </div>
  18.                         </div><!--// .yui-u -->
  19.                     </div><!--// .yui-gf -->
  20.                     <?php endwhile; ?>
  21.                     <br clear="all" />
  22.                     <br clear="all" />
  23.                     <?php wp_reset_query(); ?>
  24.                     <?php rewind_posts(); ?>
  25.                     <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement