No need for this HTML to be in a function. Now instead of calling the function, just use get_template_part
17 lines
653 B
PHP
17 lines
653 B
PHP
<?php while (have_posts()) : the_post(); ?>
|
|
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
|
|
<header>
|
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
|
<?php get_template_part('templates/entry-meta'); ?>
|
|
</header>
|
|
<div class="entry-content">
|
|
<?php the_content(); ?>
|
|
</div>
|
|
<footer>
|
|
<?php wp_link_pages(array('before' => '<nav id="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?>
|
|
<?php $tags = get_the_tags(); if ($tags) { ?><p><?php the_tags(); ?></p><?php } ?>
|
|
</footer>
|
|
<?php comments_template('/templates/comments.php'); ?>
|
|
</article>
|
|
<?php endwhile; ?>
|