Advertisement
Guest User

Untitled

a guest
Sep 20th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 <?php /* The loop */
  2.                
  3.                 $temp2 = $wp_query;
  4.                 $wp_query= null;
  5.                 $wp_query = new WP_Query();
  6.                 $wp_query->query('showposts=4'.'&paged='.$paged.'&category_name=Donations');
  7.                 /* declare variable, use it to call 4 posts, with Donations Category */
  8.                
  9.                 ?>
  10.                    
  11.                     <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
  12.  
  13.                 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14.                     <header class="entry-header">
  15.                        
  16.                         <div class="entry-thumbnail">
  17.                             <?php the_post_thumbnail(); ?>
  18.                         </div>
  19.                        
  20.  
  21.                        
  22.                        
  23.                     </header><!-- .entry-header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement