added template part for page content

This commit is contained in:
Pavel Kuleshov 2020-03-19 12:49:36 +08:00
parent a73391f28e
commit 82eb14d187
2 changed files with 11 additions and 4 deletions

View File

@ -3,10 +3,8 @@
if ( have_posts() ) {
the_post();
echo '<div class="content">';
echo "<h1>", the_title(); , "</h1>"
the_content();
echo '</div>';
get_template_part( 'template/post/content', 'page' );
}
get_footer();

View File

@ -0,0 +1,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
echo '<div class="content">';
echo "<h1>", the_title(), "</h1>";
the_content();
echo '</div>';
?>
</article>