archive.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * The template for displaying archive pages
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package Seedlet
  8. * @since 1.0.0
  9. */
  10. get_header();
  11. ?>
  12. <section id="primary" class="content-area">
  13. <main id="main" class="site-main" role="main">
  14. <?php if ( have_posts() ) : ?>
  15. <header class="page-header default-max-width">
  16. <?php
  17. the_archive_title( '<h1 class="page-title">', '</h1>' );
  18. ?>
  19. </header><!-- .page-header -->
  20. <?php
  21. // Start the Loop.
  22. while ( have_posts() ) :
  23. 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( 'template-parts/content/content-excerpt' );
  30. // End the loop.
  31. endwhile;
  32. // Previous/next page navigation.
  33. seedlet_the_posts_navigation();
  34. // If no content, include the "No posts found" template.
  35. else :
  36. get_template_part( 'template-parts/content/content-none' );
  37. endif;
  38. ?>
  39. </main><!-- #main -->
  40. </section><!-- #primary -->
  41. <?php
  42. get_footer();