View difference between Paste ID: NZ7fyyPA and kxjxJFNq
SHOW: | | - or go back to the newest paste.
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-
						<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
15+
16
						<div class="entry-thumbnail">
17
							<?php the_post_thumbnail(); ?>
18
						</div>
19-
						<?php endif; ?>
19+
20
21
						
22
						
23
					</header><!-- .entry-header -->