archive.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The template for displaying archive pages
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package WordPress
  8. * @subpackage Seedlet
  9. * @since 1.0.0
  10. */
  11. get_header();
  12. ?>
  13. <section id="primary" class="content-area">
  14. <main id="main" class="site-main">
  15. <?php if ( have_posts() ) : ?>
  16. <header class="page-header default-max-width">
  17. <?php
  18. the_archive_title( '<h1 class="page-title">', '</h1>' );
  19. ?>
  20. </header><!-- .page-header -->
  21. <?php
  22. // Start the Loop.
  23. while ( have_posts() ) :
  24. the_post();
  25. /*
  26. * Include the Post-Format-specific template for the content.
  27. * If you want to override this in a child theme, then include a file
  28. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  29. */
  30. get_template_part( 'template-parts/content/content-excerpt' );
  31. // End the loop.
  32. endwhile;
  33. // Previous/next page navigation.
  34. seedlet_the_posts_navigation();
  35. // If no content, include the "No posts found" template.
  36. else :
  37. get_template_part( 'template-parts/content/content-none' );
  38. endif;
  39. ?>
  40. </main><!-- #main -->
  41. </section><!-- #primary -->
  42. <?php
  43. get_footer();