Guest User

Untitled

a guest
Feb 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. /**
  3. Template Name: Blog Masonry
  4. */
  5. get_header();
  6. get_template_part('index','banner');
  7. $appointment_options=theme_setup_data();
  8. $blog_masonry_column = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options );
  9. ?>
  10. <!-- Page Seperator --><div class="page-seperator"></div><!-- /Page Seperator -->
  11. <div class="clearfix"></div>
  12. <!-- Blog Masonry Section -->
  13. <section class="blog-section-lg">
  14. <div class="container">
  15. <div class="row masonry-<?php echo $blog_masonry_column['blog_masonry_column_layout'];?>">
  16. <?php
  17. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  18. $args = array( 'post_type' => 'post','paged'=>$paged ,'category__in' => 3);
  19. $post_type_data = new WP_Query( $args );
  20. while($post_type_data->have_posts()){
  21. $post_type_data->the_post();
  22. ?>
  23. <div class="masonry-item">
  24. <?php get_template_part( 'content',get_post_format() ); ?>
  25. </div>
  26. <?php } ?>
  27. </div>
  28. </div>
  29. <!-- Blog Pagination -->
  30. <?php
  31. $Webriti_pagination = new Webriti_pagination();
  32. $Webriti_pagination->Webriti_page($paged, $post_type_data); ?>
  33. <!-- /Blog Pagination -->
  34. </div>
  35. </section>
  36. <!-- /Blog Masonry Section -->
  37. <div class="clearfix"></div>
  38. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment