Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 96  |  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. <?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. ?>