h1 post title

master
Pavel Kuleshov 4 years ago
parent b85b801a88
commit c7b882259d

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

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