Guest User

Untitled

a guest
Dec 11th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <?php
  6. $postct = get_option('dion_postnum');
  7. $args=array('post_type' => 'videos','post_status'=> 'publish','posts_per_page' =>$postct,'caller_get_posts' =>1,'paged' =>$paged,);
  8. query_posts($args);
  9. if (have_posts()) : while (have_posts()) : the_post();
  10. ?>
  11.  
  12. <div class="box rounded <?php if (++$counter % 4 == 0) { echo "lastbox"; }?>" id="post-<?php the_ID(); ?>">
  13.  
  14. <div class="postcover">
  15.  
  16. <?php $trailer = get_post_meta($post->ID, 'trailer_value', $single = true) ?>
  17. <?php $poster = get_post_meta($post->ID, 'poster_value', $single = true) ?>
  18.  
  19. <a href="<?php echo $trailer; ?>" rel="prettyPhoto" ><img class="poster" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $poster; ?>&h=270&w=200&zc=1" alt=""/></a>
  20.  
  21. </div>
  22.  
  23. <div class="boxtitle">
  24. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  25. </div>
  26.  
  27. </div>
  28.  
  29. <?php endwhile; ?>
  30.  
  31. <div class="clear"></div>
  32.  
  33. <div id="navigation">
  34. <?php
  35. if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  36. ?>
  37.  
  38. </div>
  39. <?php wp_reset_query();?>
  40.  
  41. <?php else : ?>
  42.  
  43. <div class="title"><h2>Oops.. Nothing Found !</h2></div>
  44. <div class="cover"> <p>I think what you are looking for is not here or it has been moved. Please try a different search..</p> </div>
  45.  
  46.  
  47. <?php endif; ?>
  48.  
  49. </div>
  50.  
  51.  
  52. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment