content-single.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * The template part for displaying single posts
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Sixteen
  7. * @since Twenty Sixteen 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  13. </header><!-- .entry-header -->
  14. <?php twentysixteen_excerpt(); ?>
  15. <?php twentysixteen_post_thumbnail(); ?>
  16. <div class="entry-content">
  17. <?php
  18. the_content();
  19. wp_link_pages( array(
  20. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  21. 'after' => '</div>',
  22. 'link_before' => '<span>',
  23. 'link_after' => '</span>',
  24. 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  25. 'separator' => '<span class="screen-reader-text">, </span>',
  26. ) );
  27. if ( '' != get_the_author_meta( 'description' ) ) {
  28. get_template_part( 'template-parts/biography' );
  29. }
  30. ?>
  31. </div><!-- .entry-content -->
  32. <footer class="entry-footer">
  33. <?php twentysixteen_entry_meta(); ?>
  34. <?php
  35. edit_post_link(
  36. sprintf(
  37. /* translators: %s: Name of current post */
  38. __( 'Edit %s', 'twentysixteen' ),
  39. the_title( '<span class="screen-reader-text">', '</span>', false )
  40. ),
  41. '<span class="edit-link">',
  42. '</span>'
  43. );
  44. ?>
  45. </footer><!-- .entry-footer -->
  46. </article><!-- #post-## -->