Guest User

Untitled

a guest
May 3rd, 2013
203
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <?php global $switched; switch_to_blog(2); ?>
  4.  
  5. <div class="row-fluid mostwanted-container">
  6.  
  7. <?php
  8. $type = 'portal_warrants';
  9. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  10. $terms = is_term( 'most-wanted' , 'warrant_status' );
  11. $args=array(
  12. 'post_type' => $type,
  13. 'posts_per_page' => 6,
  14. 'paged' => $paged,
  15. 'tax_query' =>
  16. array(
  17. array(
  18. 'taxonomy' => 'warrant_status',
  19. 'field' => 'id',
  20. 'terms' => 'most-wanted',
  21. )
  22. )
  23.  
  24. );
  25.  
  26. $my_query = null;
  27. $my_query = new WP_Query($args);
  28. $i = 0;
  29. if( $my_query->have_posts() ) {
  30. while ($my_query->have_posts()) : $my_query->the_post();
  31.  
  32. if( $i % 3 == 0) :?>
  33. </div>
  34. <div class="row-fluid mostwanted-container">
  35. <?php endif; ?>
  36. <?php print_r(var_dump($wp_query->request)); ?>
  37. <div class="span4 wanted">
  38. <h1>Wanted</h1>
  39. <div class="mostwanted-img">
  40. <img src="http://placehold.it/150x170">
  41. <span class="arrested">Arrested</span>
  42. </div>
  43. <div class="mostwanted-info">
  44. <h3><?php the_title(); ?></h3>
  45. <ul>
  46. <li><strong>Last Known Address:</strong></li>
  47. <li><strong>Hair:</strong></li>
  48. <li><strong>Eyes:</strong></li>
  49. <li><strong>Height:</strong></li>
  50. <li><strong>Weight:</strong></li>
  51. </ul>
  52. </div>
  53. </div>
  54.  
  55. <?php $i++ ?>
  56.  
  57. <?php endwhile; } wp_reset_query(); ?>
  58.  
  59. </div>
  60.  
  61. <?php restore_current_blog(); ?>
  62.  
  63. <?php get_footer(); ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×