Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php global $switched; switch_to_blog(2); ?>
- <div class="row-fluid mostwanted-container">
- <?php
- $type = 'portal_warrants';
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $terms = is_term( 'most-wanted' , 'warrant_status' );
- $args=array(
- 'post_type' => $type,
- 'posts_per_page' => 6,
- 'paged' => $paged,
- 'tax_query' =>
- array(
- array(
- 'taxonomy' => 'warrant_status',
- 'field' => 'id',
- 'terms' => 'most-wanted',
- )
- )
- );
- $my_query = null;
- $my_query = new WP_Query($args);
- $i = 0;
- if( $my_query->have_posts() ) {
- while ($my_query->have_posts()) : $my_query->the_post();
- if( $i % 3 == 0) :?>
- </div>
- <div class="row-fluid mostwanted-container">
- <?php endif; ?>
- <?php print_r(var_dump($wp_query->request)); ?>
- <div class="span4 wanted">
- <h1>Wanted</h1>
- <div class="mostwanted-img">
- <img src="http://placehold.it/150x170">
- <span class="arrested">Arrested</span>
- </div>
- <div class="mostwanted-info">
- <h3><?php the_title(); ?></h3>
- <ul>
- <li><strong>Last Known Address:</strong></li>
- <li><strong>Hair:</strong></li>
- <li><strong>Eyes:</strong></li>
- <li><strong>Height:</strong></li>
- <li><strong>Weight:</strong></li>
- </ul>
- </div>
- </div>
- <?php $i++ ?>
- <?php endwhile; } wp_reset_query(); ?>
- </div>
- <?php restore_current_blog(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement