daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Sep 10th, 2014 226 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="right_container">
  2.  
  3.      <?php
  4.     $args = array(
  5.                  'category_name' => 'featured-big',
  6.                  'post_type' => 'post',
  7.                  'posts_per_page' => 2,
  8.                  'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
  9.                  );
  10.     query_posts($args);
  11.     while (have_posts()) : the_post(); ?>
  12.        
  13.     <div class="featured_post">
  14.       <h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); //echo substr(get_the_title(),0,85); ?></a></h3>
  15.      
  16.       <?php
  17.       if ( has_post_thumbnail() ) {
  18.         ?> <span class="home_image"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-big'); ?></a></span> <?php
  19.       } else {
  20.         ?> <a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>" class="featured_big" /></a> <?php
  21.       }
  22.       ?>
  23.      
  24.     </div><!--//featured_post-->    
  25.  
  26.      <?php endwhile; ?>
  27.      
  28.      <div align="right"><?php wp_pagenavi(); ?></div>
  29.      <?php wp_reset_query(); ?>
  30.    
  31.   </div>
RAW Paste Data
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