archive.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The template for displaying archive pages.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Lodestar
  8. */
  9. get_header(); ?>
  10. <div class="wrap">
  11. <div id="primary" class="content-area">
  12. <main id="main" class="site-main" role="main">
  13. <?php
  14. if ( have_posts() ) : ?>
  15. <header class="page-header">
  16. <?php
  17. the_archive_title( '<h1 class="page-title">', '</h1>' );
  18. the_archive_description( '<div class="taxonomy-description">', '</div>' );
  19. ?>
  20. </header>
  21. <?php
  22. /* Start the Loop */
  23. while ( have_posts() ) : the_post();
  24. /*
  25. * Include the Post-Format-specific template for the content.
  26. * If you want to override this in a child theme, then include a file
  27. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  28. */
  29. get_template_part( 'components/post/content', get_post_format() );
  30. endwhile;
  31. the_posts_navigation();
  32. else :
  33. get_template_part( 'components/post/content', 'none' );
  34. endif; ?>
  35. </main>
  36. </div><!-- #primary -->
  37. <?php get_sidebar(); ?>
  38. </div><!-- .wrap -->
  39. <?php
  40. get_footer();