Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'posts_per_page' => 9,
- 'paged' => $paged
- ) ;
- $my_query = new WP_Query($args) ;?>
- <section id="" class="container-fluid">
- <?php $count = 0 ?>
- <?php if ($my_query->have_posts()) : ?>
- <div class="row">
- <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <article class="post col col-xs-12 col-sm-4">
- <h3> <a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
- <p><?php the_excerpt(); ?></p>
- <?php $count++ ?>
- <p><a href="<?php echo get_permalink() ?>">read more</a></p>
- </article>
- <?php if ( $count %3 == 0 ) { ?>
- </div>
- <div class="row">
- <?php } ?>
- <?php endwhile; ?>
- <?php endif; ?>
- </section> <!-- ENDS .container -->
- <footer class="pagination container-fluid clearfix">
- <div class="col col-xs-12">
- <?php echo get_the_posts_navigation( ); ?>
- <?php wp_reset_postdata() ?>
- </div>
- </footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement