Sin descripción

content.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header">
  14. <?php if ( is_singular() ) : ?>
  15. <?php the_title( '<h1 class="entry-title default-max-width">', '</h1>' ); ?>
  16. <?php else : ?>
  17. <?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  18. <?php endif; ?>
  19. <?php twenty_twenty_one_post_thumbnail(); ?>
  20. </header><!-- .entry-header -->
  21. <div class="entry-content">
  22. <?php
  23. the_content(
  24. twenty_twenty_one_continue_reading_text()
  25. );
  26. wp_link_pages(
  27. array(
  28. 'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
  29. 'after' => '</nav>',
  30. /* translators: %: Page number. */
  31. 'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
  32. )
  33. );
  34. ?>
  35. </div><!-- .entry-content -->
  36. <footer class="entry-footer default-max-width">
  37. <?php twenty_twenty_one_entry_meta_footer(); ?>
  38. </footer><!-- .entry-footer -->
  39. </article><!-- #post-<?php the_ID(); ?> -->