0

why this heading tag is applied to my article, i mean instead of article showing in paragraph its showing in h4 tag because i applied it to date and it auto applied to my content too.

echo '<h2>'.get_the_title().'</h2>';
echo '<h4>'.get_the_date().'<h4>';

echo'<br/>';

while(have_posts()): the_post();
    the_content();
endwhile;
1
  • 1
    your <h4> is not closing
    – M-R
    Commented Nov 2, 2017 at 15:08

1 Answer 1

2

Your second h4 tag is again an opening tag.

This

echo '<h4>'.get_the_date().'<h4>';

should be this

echo '<h4>'.get_the_date().'</h4>';
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.