• So I’m trying to do the loop in wordpress and I’m getting a php error… this is my code for single.php

    <?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="URLISBLOCKEDJUSTIGNOREITwpthemes/wp-content/themes/HTML/images/home.gif" width="28" height="13" alt="home" /></a></li>
    				<li><a class="sports" href="##"><img src="URLISBLOCKEDJUSTIGNOREIT/wpthemes/wp-content/themes/HTML/images/sports.gif" width="36" height="11" alt="sports" /></a></li>
    				<li><a class="about" href="##"><img src="URLISBLOCKEDJUSTIGNOREIT/wpthemes/wp-content/themes/HTML/images/about.gif" width="31" height="11" alt="about" /></a></li>
    				<li><a class="links" href="##"><img src="URLISBLOCKEDJUSTIGNOREITwpthemes/wp-content/themes/HTML/images/links.gif" width="27" height="12" alt="links" /></li>
    				<li><a class="wedding" href="##"><img src="URLISBLOCKEDJUSTIGNOREIT/wpthemes/wp-content/themes/HTML/images/wedding.gif" width="49" height="11" alt="weddings" /></a></li>
    				<li><a class="contact" href="##"><img src="URLISBLOCKEDJUSTIGNOREIT/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() )&nbsp;: while ( have_posts() )&nbsp;: the_post();&nbsp;?>
    <?php endwhile; else:&nbsp;?>
    <p><?php _e('Sorry, no posts matched your criteria.');&nbsp;?></p>
    <?php endif;&nbsp;?>
    
    		</div>
    		<div class="clear gap3"></div>
    	</div>
    
    <?php get_footer(); ?>

    And this is the error that I get.

    [QUOTE]Parse error: syntax error, unexpected ‘&’ in /home/content/77/4553577/html/wp-content/themes/HTML/single.php on line 35[/QUOTE]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP error with wordpress.’ is closed to new replies.