The following is the code for my single.php file, when I open up a post URL I get an error. <?php get_header(); ?> <body> <div id="hold"> <div id="holdbg"> <div id="header"> <div class="clear gap1"></div> <div id="logo"> <h1><a href="##"><span>Bob Hogan Productions</span></a></h1> </div> <div id="search"> <form action="##" method="post"> <fieldset> <input type="text" value="" size="21" id="text" /> <input type="submit" value="Search" id="submit" /> </fieldset> </form> </div> <div class="clear gap2"></div> </div> <div id="mainblock"> <div class="clear gap3"></div> <div id="navigator"> <ul id="nav"> <li><a class="home" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/home.gif" width="28" height="13" alt="home" /></a></li> <li><a class="sports" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/sports.gif" width="36" height="11" alt="sports" /></a></li> <li><a class="about" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/about.gif" width="31" height="11" alt="about" /></a></li> <li><a class="links" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/links.gif" width="27" height="12" alt="links" /></li> <li><a class="wedding" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/wedding.gif" width="49" height="11" alt="weddings" /></a></li> <li><a class="contact" href="##"><img src="http://www.thegermz.com/wpthemes/wp-content/themes/HTML/images/contact.gif" width="59" height="12" alt="contact us" /></a></li> </ul> </div> <div id="slideshow"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> </div> <div class="clear gap3"></div> </div> <?php get_footer(); ?> PHP: This is the errror that I get
From Line 35 - delete this code <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> PHP: and replace it with the following code: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> PHP: See if it works...