View difference between Paste ID: 1phRU6q4 and iwauisyv
SHOW: | | - or go back to the newest paste.
1
<!--/////////////////////-Start of the Top Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->		
2
<div class="row sub_content">
3
4
	<?php 
5
	$args = array( 'post_type' => 'blog', 
6
				   'post_status' => 'publish',
7
				   'showposts' => 3,
8
				   '&paged='.$paged,			
9
				   'offset' => 1); 
10
	$firstRowThumbs = new WP_Query($args);
11
	
12
	if ( $firstRowThumbs->have_posts() ) : while ( $firstRowThumbs->have_posts() ) : $firstRowThumbs->the_post(); ?>
13
		
14
	<div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
15
		<div class="thumbpost-text">
16
			<h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
17
			<p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
18
		</div>
19
	</div>
20
	<?php endwhile; else : ?>
21
		<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
22
	<?php endif; ?>		
23
	<?php rewind_posts(); ?>
24
25
</div>
26
<!--/////////////////////-End of the Top Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
27
28
<!--/////////////////////-Start of the Middle Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->		
29
<div class="row sub_content">
30
31
	<?php 
32
	$args = array( 'post_type' => 'blog', 
33
				   'post_status' => 'publish',
34
				   'showposts' => 3,
35
				   '&paged='.$paged,			
36
				   'offset' => 4); 
37
	$secondRowThumbs = new WP_Query($args);
38
	
39
	if ( $secondRowThumbs->have_posts() ) : while ( $secondRowThumbs->have_posts() ) : $secondRowThumbs->the_post(); ?>
40
		
41
	<div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
42
		<div class="thumbpost-text">
43
			<h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
44
			<p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
45
		</div>
46
	</div>
47
	<?php endwhile; else : ?>
48
		<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
49
	<?php endif; ?>		
50
	<?php rewind_posts(); ?>
51
52
</div>
53
<!--/////////////////////-End of the Middle Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
54
55
<!--/////////////////////-Start of the Bottom Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->		
56
<div class="row sub_content">
57
58
	<?php 
59
	$args = array( 'post_type' => 'blog', 
60
				   'post_status' => 'publish',
61
				   'showposts' => 3,
62
				   '&paged='.$paged,			
63
				   'offset' => 7); 
64
	$thirdRowThumbs = new WP_Query($args);
65
	
66
	if ( $thirdRowThumbs->have_posts() ) : while ( $thirdRowThumbs->have_posts() ) : $thirdRowThumbs->the_post(); ?>
67
		
68
	<div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
69
		<div class="thumbpost-text">
70
			<h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
71
			<p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
72
		</div>
73
	</div>
74
	<?php endwhile; else : ?>
75
		<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
76
	<?php endif; ?>		
77
78
</div>
79
<!--/////////////////////-End of the Bottom Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
80
81
<?php wp_reset_postdata(); ?>