Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $prod_cats = get_terms('department');
- foreach ($prod_cats as $prod_cat) {
- $cat_name = $prod_cat->name; ?>
- <?php $loop = new WP_Query( array( 'post_type' => 'resume', 'department' => $cat_name ) ); ?>
- <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <div class="yui-gf">
- <div class="yui-u first">
- <h2><?php echo get_the_term_list( $post->ID, 'department', '', ' ', '' ); ?></h2>
- </div><!--// .yui-u -->
- <div class="yui-u" >
- <div class="job">
- <h2><?php echo get_the_term_list( $post->ID, 'organization', '', ' ', '' ); ?></h2>
- <h3><?php the_title(); ?></h3>
- <h4><?php echo get_the_term_list( $post->ID, 'timeperiod', '', ' ', '' ); ?></h4>
- <p><?php the_content(); ?></p>
- </div>
- </div><!--// .yui-u -->
- </div><!--// .yui-gf -->
- <?php endwhile; ?>
- <br clear="all" />
- <br clear="all" />
- <?php wp_reset_query(); ?>
- <?php rewind_posts(); ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement