daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="container">
  2. <?php query_posts('posts_per_page=30'); ?>
  3.  <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  4.  <div class="row">
  5.  <div class="col-sm-4">
  6. <?php if ( has_post_thumbnail()) { $url = wp_get_attachment_url( get_post_thumbnail_id() ); ?>
  7. <img src="<?php echo $url; ?>" alt="<?php the_title() ?>">
  8.   <h3><?php the_title() ?></h3>
  9.  </div><!-- col -->
  10. </div><!-- row -->
  11.  <?php } ?>
  12. <?php endwhile; endif; ?>
  13. </div><!-- container -->
  14.  
  15. <?php wp_reset_query(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top