parasshah195

PixiGo theme home.php full content

Aug 28th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying archive pages
  4.  *
  5.  * @link https://codex.wordpress.org/Template_Hierarchy
  6.  *
  7.  * @package wprig
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.     <main id="primary" class="site-main">
  13.  
  14.     <?php
  15.     if ( have_posts() ) :
  16.  
  17.         wp_print_styles( array( 'pixigo-content' ) );
  18.  
  19.         /* Start the Loop */
  20.         while ( have_posts() ) :
  21.             the_post();
  22.  
  23.             get_template_part( 'template-parts/content' );
  24.  
  25.         endwhile;
  26.  
  27.         the_posts_pagination(
  28.             array(
  29.                 'mid_size'  => 2,
  30.             )
  31.         );
  32.  
  33.     else :
  34.  
  35.         get_template_part( 'template-parts/content', 'none' );
  36.  
  37.     endif;
  38.     ?>
  39.  
  40.     </main><!-- #primary -->
  41.  
  42. <?php
  43. get_sidebar();
  44. get_footer();
Add Comment
Please, Sign In to add comment