Guest User

Untitled

a guest
Aug 4th, 2021
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The template for displaying all single posts
  4.  *
  5.  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6.  *
  7.  * @package Yocto
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12. <main class="site-main" role="main">
  13.  
  14.     <?php
  15.     while ( have_posts() ) : the_post();
  16.  
  17.         get_template_part( 'template-parts/content', 'blog' );
  18.  
  19.         // Previous/next post navigation.
  20.         the_post_navigation( array(
  21.             'next_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Next ', 'yocto' ) . '&gt; ' . '</span> ' .
  22.                 '<span class="screen-reader-text">' . esc_html__( 'Next post:', 'yocto' ) . '</span> ' .
  23.                 '<span class="post-title">%title</span>',
  24.             'prev_text' => '<span class="meta-nav" aria-hidden="true">' . ' &lt;' . esc_html__( ' Previous', 'yocto' ) . '</span> ' .
  25.                 '<span class="screen-reader-text">' . esc_html__( 'Previous post:', 'yocto' ) . '</span> ' .
  26.                 '<span class="post-title">%title</span>',
  27.         ) );
  28.            
  29.        
  30.  
  31.     endwhile; // End of the loop.
  32.     ?>
  33.  
  34. </main><!-- .site-main -->
  35.  
  36. <?php
  37. get_sidebar();
  38. get_footer();
  39.  
RAW Paste Data