[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template part for displaying posts 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package WordPress 8 * @subpackage Twenty_Twenty_One 9 * @since Twenty Twenty-One 1.0 10 */ 11 12 ?> 13 14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 15 <header class="entry-header"> 16 <?php if ( is_singular() ) : ?> 17 <?php the_title( '<h1 class="entry-title default-max-width">', '</h1>' ); ?> 18 <?php else : ?> 19 <?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> 20 <?php endif; ?> 21 22 <?php twenty_twenty_one_post_thumbnail(); ?> 23 </header><!-- .entry-header --> 24 25 <div class="entry-content"> 26 <?php 27 the_content( 28 twenty_twenty_one_continue_reading_text() 29 ); 30 31 wp_link_pages( 32 array( 33 'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">', 34 'after' => '</nav>', 35 /* translators: %: Page number. */ 36 'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ), 37 ) 38 ); 39 40 ?> 41 </div><!-- .entry-content --> 42 43 <footer class="entry-footer default-max-width"> 44 <?php twenty_twenty_one_entry_meta_footer(); ?> 45 </footer><!-- .entry-footer --> 46 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 12 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |