Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template part for displaying posts
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
- *
- * @package Yocto
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php
- if ( is_singular() ) : ?>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>hfghfghf' ); ?>
- </header>
- <div class="entry-content">
- <?php
- get_template_part( 'template-parts/entry-meta' );
- the_content();
- get_template_part( 'template-parts/template-autorenbox' ); /** Autorenbox */
- get_template_part( 'template-parts/template-related-posts-blog' ); /** Related Posts */
- ?>
- </div><!-- .entry-content -->
- <?php get_template_part( 'template-parts/entry-footer' ); ?>
- <?php
- else : ?>
- <header class="entry-header">
- <?php
- if ( is_sticky() && is_home() ) :
- echo yocto_get_svg( array( 'icon' => 'pin' ) );
- endif;
- the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
- ?>
- </header>
- <div class="entry-content">
- <?php
- get_template_part( 'template-parts/entry-meta' );
- yocto_post_thumbnail();
- the_excerpt();
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'yocto' ),
- 'after' => '</div>',
- ) );
- ?>
- </div>
- <?php
- endif; // End check single. ?>
- </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement