예제 #1
0
        </h1>

        <?php 
    get_template_part('templates/entry-meta');
    ?>
      </header>

      <div class="entry-content">
        <?php 
    the_content();
    ?>
      </div>

      <div class="entry-other">
        <?php 
    the_category_list();
    the_tag_list();
    ?>
      </div>

      <footer>
        <?php 
    wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'mdc'), 'after' => '</p></nav>']);
    ?>
      </footer>

      <div class="comment-wrap clearfix">
        <?php 
    comments_template('/templates/comments.php');
    ?>
      </div>
예제 #2
0
/**
 * Template part for displaying single posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Turn_the_Table
 */
global $post;
?>

<?php 
if (!is_single()) {
    //if homepage or archive page wrap article in link
    ?>
    <a class="scroller__item post__permalink mix <?php 
    the_category_list(' ', 'slug');
    ?>
" href="<?php 
    the_permalink();
    ?>
">
<?php 
}
?>


    <article class="posts">

            <?php 
if (has_post_thumbnail()) {
    ?>
예제 #3
0
    } else {
        the_post_thumbnail('custom-thumb', array('class' => 'section__image'));
    }
    ?>
                </div>
            <?php 
}
?>

            <div class="post__block">
                
                <?php 
if (!in_category('Uncategorized') && is_single()) {
    ?>
                    <p class="post__category"><?php 
    the_category_list(', ', 'name');
    ?>
</p>
                <?php 
}
?>

                <?php 
if (is_single()) {
    ?>
                    <h1 class="post__title"><?php 
    the_title();
    ?>
</h1>
                <?php 
}