Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 10th, 2012  |  syntax: PHP  |  size: 1.12 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="row">
  2.         <div class="twelve columns hide-on-phones top-featured">
  3.        
  4.         <?php $featured_big = new WP_Query('category_name=featured&posts_per_page=2'); ?>
  5.        
  6.         <?php while ($featured_big->have_posts()) : $featured_big->the_post(); ?>
  7.                 <div class="featured-thumbs-top">
  8.                         <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
  9.                                 <?php the_post_thumbnail( 'homepage-big-featured' ); echo'<p class="big-featured-caption">';the_title();echo'</p>'; ?>
  10.             </a>
  11.         </div>
  12.                 <?php endwhile; ?>
  13.        
  14.         <?php $featured_small = new WP_Query('category_name=featured&posts_per_page=4'); ?>
  15.        
  16.         <?php while ($featured_small->have_posts()) : $featured_small->the_post(); ?>
  17.                 <div class="featured-thumbs-bottom">
  18.                         <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
  19.                                 <?php the_post_thumbnail( 'homepage-small-featured' ); echo'<p class="small-featured-caption">';the_title();echo'</p>'; ?>
  20.             </a>
  21.            
  22.         </div>
  23.                 <?php endwhile; ?>
  24.        
  25.         </div>                 
  26. </div>