Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--/////////////////////-Start of the Top Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <div class="row sub_content">
- <?php
- $args = array( 'post_type' => 'blog',
- 'post_status' => 'publish',
- 'showposts' => 3,
- '&paged='.$paged,
- 'offset' => 1);
- $firstRowThumbs = new WP_Query($args);
- if ( $firstRowThumbs->have_posts() ) : while ( $firstRowThumbs->have_posts() ) : $firstRowThumbs->the_post(); ?>
- <div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
- <div class="thumbpost-text">
- <h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
- <p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
- </div>
- </div>
- <?php endwhile; else : ?>
- <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
- <?php rewind_posts(); ?>
- </div>
- <!--/////////////////////-End of the Top Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <!--/////////////////////-Start of the Middle Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <div class="row sub_content">
- <?php
- $args = array( 'post_type' => 'blog',
- 'post_status' => 'publish',
- 'showposts' => 3,
- '&paged='.$paged,
- 'offset' => 4);
- $secondRowThumbs = new WP_Query($args);
- if ( $secondRowThumbs->have_posts() ) : while ( $secondRowThumbs->have_posts() ) : $secondRowThumbs->the_post(); ?>
- <div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
- <div class="thumbpost-text">
- <h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
- <p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
- </div>
- </div>
- <?php endwhile; else : ?>
- <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
- <?php rewind_posts(); ?>
- </div>
- <!--/////////////////////-End of the Middle Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <!--/////////////////////-Start of the Bottom Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <div class="row sub_content">
- <?php
- $args = array( 'post_type' => 'blog',
- 'post_status' => 'publish',
- 'showposts' => 3,
- '&paged='.$paged,
- 'offset' => 7);
- $thirdRowThumbs = new WP_Query($args);
- if ( $thirdRowThumbs->have_posts() ) : while ( $thirdRowThumbs->have_posts() ) : $thirdRowThumbs->the_post(); ?>
- <div class="small-12 medium-4 large-4 columns"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-featured-img'); ?></a>
- <div class="thumbpost-text">
- <h2 class="thumbpost-titles"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></h2>
- <p class="thumbpost-tags"><?php the_tags( "", ", ", "" ); ?></p>
- </div>
- </div>
- <?php endwhile; else : ?>
- <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
- </div>
- <!--/////////////////////-End of the Bottom Thumbnail Row-\\\\\\\\\\\\\\\\\\\\\-->
- <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement