I just started with a wordpress tutorial series and one of the first things it does was make a simple "the loop", to print the title and description of all of the posts. When I did it though, it prints the name and description of the home page.
<?php
if ( have_posts() )
{
while ( have_posts() )
{
the_post();
the_title('<h2><a href="the_permalink();"','</a></h2>');
the_content();
// Post Content here
//
} // end while
} // end if
?>
I cannot figure out why it prints the home page information instead of post info.