h1 post title

This commit is contained in:
Pavel Kuleshov 2020-03-07 18:43:08 +08:00
parent b85b801a88
commit c7b882259d
2 changed files with 10 additions and 14 deletions

View File

@ -1,15 +1,13 @@
<?php get_header();?>
<?php
get_header();
if ( have_posts() ) {
the_post();
echo '<div class="content">';
the_title();
echo "<h1>", the_title(); , "</h1>"
the_content();
echo '</div>';
} else {
echo "asd";
}
?>
<?php get_footer();?>
get_footer();
?>

View File

@ -1,15 +1,13 @@
<?php get_header();?>
<?php
get_header();
if ( have_posts() ) {
the_post();
echo '<div class="content">';
the_title();
echo "<h1>", the_title(), "</h1>";
the_content();
echo '</div>';
} else {
echo "asd";
}
?>
<?php get_footer();?>
get_footer();
?>