Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="right_container">
- <?php
- $args = array(
- 'category_name' => 'featured-big',
- 'post_type' => 'post',
- 'posts_per_page' => 2,
- 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
- );
- query_posts($args);
- while (have_posts()) : the_post(); ?>
- <div class="featured_post">
- <h3 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); //echo substr(get_the_title(),0,85); ?></a></h3>
- <?php
- if ( has_post_thumbnail() ) {
- ?> <span class="home_image"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-big'); ?></a></span> <?php
- } else {
- ?> <a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>" class="featured_big" /></a> <?php
- }
- ?>
- </div><!--//featured_post-->
- <?php endwhile; ?>
- <div align="right"><?php wp_pagenavi(); ?></div>
- <?php wp_reset_query(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement