G2A Many GEOs
SHARE
TWEET

Untitled

a guest Oct 29th, 2015 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <?php
  3. $args = array(
  4.         'post_type' => 'results',
  5.         'tax_query' => array(
  6.                 'relation' => 'AND',
  7.                 array(
  8.                         'taxonomy' => 'Year',
  9.                         'field'    => '2015',
  10.                         'terms'    => 'cb_result_year',
  11.                 ),
  12.                 array(
  13.                        
  14.                         'taxonomy' => 'Class',
  15.                         'field'    => 'Eight',
  16.                         'terms'    => 'cb_result_class',
  17.                 ),
  18. array(
  19.                        
  20.                         'taxonomy' => 'Semester',
  21.                         'field'    => '1st Semester',
  22.                         'terms'    => 'cb_result_semester',
  23.                 ),
  24.         ),
  25. );
  26. $query = new WP_Query( $args );
  27.  
  28.  
  29.  
  30. ?>
  31. <?php if($query->have_posts()) : ?> <?php while ($query->have_posts()) : $query->the_post(); ?>
  32. <?php the_title();?>
  33.  
  34. <?php endwhile;?>
  35. <?php else : ?>
  36.  
  37. <h2>sorry don't have any post</h2>
  38.  
  39. <?php endif;?>
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top