[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
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 12 get_header(); 13 ?> 14 15 <div id="primary" class="content-area"> 16 <main id="main" class="site-main"> 17 18 <?php if ( have_posts() ) : ?> 19 20 <header class="page-header"> 21 <?php 22 the_archive_title( '<h1 class="page-title">', '</h1>' ); 23 ?> 24 </header><!-- .page-header --> 25 26 <?php 27 // Start the Loop. 28 while ( have_posts() ) : 29 the_post(); 30 31 /* 32 * Include the Post-Format-specific template for the content. 33 * If you want to override this in a child theme, then include a file 34 * called content-___.php (where ___ is the Post Format name) and that 35 * will be used instead. 36 */ 37 get_template_part( 'template-parts/content/content', 'excerpt' ); 38 39 // End the loop. 40 endwhile; 41 42 // Previous/next page navigation. 43 twentynineteen_the_posts_navigation(); 44 45 // If no content, include the "No posts found" template. 46 else : 47 get_template_part( 'template-parts/content/content', 'none' ); 48 49 endif; 50 ?> 51 </main><!-- #main --> 52 </div><!-- #primary --> 53 54 <?php 55 get_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |