added template part for page content

This commit is contained in:
2020-03-19 12:49:36 +08:00
parent a73391f28e
commit 82eb14d187
2 changed files with 11 additions and 4 deletions
+2 -4
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();