Move roots_entry_meta into its own template
No need for this HTML to be in a function. Now instead of calling the function, just use get_template_part
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
|
||||
<header>
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
<?php roots_entry_meta(); ?>
|
||||
<?php get_template_part('templates/entry-meta'); ?>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
@@ -13,4 +13,4 @@
|
||||
</footer>
|
||||
<?php comments_template('/templates/comments.php'); ?>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
Reference in New Issue
Block a user