archive.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * The template for displaying archive pages.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Ixion
  8. */
  9. get_header();
  10. if ( have_posts() ) : ?>
  11. <header class="page-header">
  12. <?php
  13. the_archive_title( '<h1 class="page-title">', '</h1>' );
  14. the_archive_description( '<div class="taxonomy-description">', '</div>' );
  15. ?>
  16. </header>
  17. <?php endif; ?>
  18. <div id="primary" class="content-area">
  19. <main id="main" class="site-main" role="main">
  20. <?php
  21. if ( have_posts() ) :
  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>
  37. <?php
  38. get_sidebar();
  39. get_footer();