Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'post_type' => 'results',
- 'tax_query' => array(
- 'relation' => 'AND',
- array(
- 'taxonomy' => 'Year',
- 'field' => '2015',
- 'terms' => 'cb_result_year',
- ),
- array(
- 'taxonomy' => 'Class',
- 'field' => 'Eight',
- 'terms' => 'cb_result_class',
- ),
- array(
- 'taxonomy' => 'Semester',
- 'field' => '1st Semester',
- 'terms' => 'cb_result_semester',
- ),
- ),
- );
- $query = new WP_Query( $args );
- ?>
- <?php if($query->have_posts()) : ?> <?php while ($query->have_posts()) : $query->the_post(); ?>
- <?php the_title();?>
- <?php endwhile;?>
- <?php else : ?>
- <h2>sorry don't have any post</h2>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement