added template part for page content

master
Pavel Kuleshov 4 years ago
parent a73391f28e
commit 82eb14d187

@ -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();

@ -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>
Loading…
Cancel
Save