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;
有帮助吗?

解决方案

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>';
许可以下: CC-BY-SA归因
scroll top