Guest User

Untitled

a guest
Aug 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <div id="content">
  2. <?php
  3. $temp = $wp_query;
  4. $wp_query= null;
  5. $wp_query = new WP_Query();
  6. $wp_query->query('post_type=post'.'&paged='.$paged);
  7. ?>
  8. <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
  9.  
  10. <?php $poster=get_post_meta($post->ID, 'wtf_poster', true); ?>
  11. <div class="box " id="post-<?php the_ID(); ?>">
  12.  
  13. <div class="boxim">
  14. <?php
  15. if ( $poster!='' ) { ?>
  16. <a href="<?php the_permalink() ?>"><img class="boximg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $poster; ?>&h=270&w=180&zc=1" alt=""/></a>
  17. <?php } else { ?>
  18. <a href="<?php the_permalink() ?>"><img class="boximg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
  19. <?php } ?>
  20.  
  21. <div class="scorebox">
  22. <span class="sholder"> <span class="scorebar score-<?php $rscore=get_post_meta($post->ID, 'wtf_rscore', true); echo $rscore; ?>"> </span> </span>
  23. </div>
  24.  
  25. </div>
  26.  
  27. <div class="boxentry">
  28. <div class="btitle">
  29. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  30. </div>
  31. <div class="bmeta">
  32. <span class="mgenre"><?php echo get_the_term_list( $post->ID, 'category', '', ', ', '' ); ?></span> <span class="mcom"><?php comments_popup_link('0', '1', '%'); ?></span>
  33. </div>
  34. <div class="clear"></div>
  35. </div>
  36. </div>
  37.  
  38. <?php if(++$counter % 3 == 0) : ?>
  39. <div class="clear"></div>
  40. <?php endif; ?>
  41.  
  42. <?php endwhile; ?>
  43.  
  44. <div class="clear"></div>
  45. <?php //wp_pagenavi(); ?>
  46. <?php getpagenavi(); ?>
  47. <?php $wp_query = null; $wp_query = $temp;?>
  48. </div>
Add Comment
Please, Sign In to add comment