Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 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 WP_Bootstrap_Starter
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12. <section id="primary" class="content-area col-sm-12 col-lg-8">
  13. <main id="main" class="site-main" role="main">
  14.  
  15. <?php
  16. if ( have_posts() ) : ?>
  17. <div class="banner"><img src="http://localhost/wptester/wp-content/uploads/2018/12/banner-zaal.jpg"></div>
  18. <header class="page-header">
  19. <?php
  20. the_archive_description( '<div class="archive-description">', '</div>' );
  21. ?>
  22. </header><!-- .page-header -->
  23. <div class='row'>
  24. <?php
  25. /* Start the Loop */
  26. while ( have_posts() ) : the_post();
  27. print('<article class="archive-post col-sm-12 col-md-6 col-lg-4">');
  28. /*
  29. * Include the Post-Format-specific template for the content.
  30. * If you want to override this in a child theme, then include a file
  31. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  32. */
  33. get_template_part( 'template-parts/content', get_post_format() );
  34. print('</article>');
  35.  
  36. endwhile;
  37.  
  38. the_posts_navigation();
  39.  
  40. else :
  41.  
  42. get_template_part( 'template-parts/content', 'none' );
  43.  
  44. endif; ?>
  45. </div>
  46. </main><!-- #main -->
  47. </section><!-- #primary -->
  48.  
  49. <?php
  50. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement