SHARE
TWEET

Untitled

a guest Jun 30th, 2012 189 Never
  1. <?php
  2. $args = array(
  3.         'posts_per_page' => 1,
  4.         'tag' => 'featured',
  5.     );
  6.  
  7.     $featured = new WP_Query($args);
  8.  
  9.     if($featured->have_posts()): while($featured->have_posts()): $featured->the_post();
  10.         the_title();
  11.         the_content();
  12.     endwhile; else:
  13.  
  14.     endif;
  15. ?>
RAW Paste Data
Top