Keine Beschreibung

archive.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Twenty_Nineteen
  9. * @since Twenty Nineteen 1.0
  10. */
  11. get_header();
  12. ?>
  13. <div id="primary" class="content-area">
  14. <main id="main" class="site-main">
  15. <?php if ( have_posts() ) : ?>
  16. <header class="page-header">
  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
  29. * will be used instead.
  30. */
  31. get_template_part( 'template-parts/content/content', 'excerpt' );
  32. // End the loop.
  33. endwhile;
  34. // Previous/next page navigation.
  35. twentynineteen_the_posts_navigation();
  36. // If no content, include the "No posts found" template.
  37. else :
  38. get_template_part( 'template-parts/content/content', 'none' );
  39. endif;
  40. ?>
  41. </main><!-- #main -->
  42. </div><!-- #primary -->
  43. <?php
  44. get_footer();