Advertisement
Guest User

Featured

a guest
Dec 29th, 2011
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <div id="frontpage-large">
  2.     <?php
  3.  
  4.     // The Query
  5.     $featured_query = new WP_Query( 'category_name=featured&posts_per_page=1&paged=1' );
  6.  
  7.     // The Loop
  8.     while ( $featured_query->have_posts() ) : $featured_query->the_post();
  9.     ?>
  10.         <?php the_post_thumbnail('full'); ?>
  11.         <div id="frontpage-large-header">
  12.             <h1 class="fontface"><?php the_title(); ?></h1>
  13.         </div>
  14.         <div id="frontpage-large-content">
  15.             <?php the_content('Lees verder &raquo;'); ?>
  16.         </div>
  17.        
  18.     <?php
  19.     endwhile;
  20.  
  21.     // Reset Post Data
  22.     wp_reset_postdata();
  23.  
  24.     ?> 
  25. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement