Syntax error… PLEASE HELP
-
Hello,
I am receiving error on my wordpress template. I tried to make some changes and it did not work so I put the default code back in and got this:syntax error, unexpected T_ENDWHILE in location.php on line 35
I thought I found the answer in a forum but when I look at it, I dont see the problem. Here is my html code:
<?php get_header(); include(‘lsidebar.php’); ?><!– BEGIN content –>
<div id=”content”><!– begin featured content –>
<div id=”featured”>
<h2>Featured Posts</h2>
<div class=”wrapper”>
<?php
$tmp_query = $wp_query;
query_posts(‘showposts=3&cat=’ . get_cat_ID(dp_settings(‘featured’)));
if (have_posts()) :
while (have_posts()) : the_post();
?>
<div class=”featured”>
<h3>“><?php the_title(); ?></h3>
<span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span>
“><?php dp_attachment_image($post->ID, ‘thumbnail’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
<p><?php echo dp_clean($post->post_content, 300); ?> …</p>
<p class=”details”><?php the_time(‘m.j.y’) ?> | <?php the_category(‘, ‘) ?> | “>Read more</p></div>
<?php endwhile; endif; ?>
</div>
</div>
<!– end featured content –><!– BEGIN recent posts –>
<div class=”recent”>
<h3>“><?php the_title(); ?></h3> <span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span> “><?php dp_attachment_image($post->ID, ‘thumbnail’, ‘alt=”‘ . $post->post_title . ‘”‘); ?> <p><?php echo dp_clean($post->post_content, 300); ?> …</p> <p class=”details”><?php the_time(‘m.j.y’) ?> | <?php the_category(‘, ‘) ?> | “>Read more</p></div>
<!– end post –>
<?php endwhile; ?><!– begin post navigation –>
<div class=”postnav”>
<?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
</div>
<!– end post navigation –><?php else : ?>
<div class=”notfound”>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?><div class=”break”></div>
</div>
<!– END recent posts –></div>
<!– END content –><?php include(‘rsidebar.php’); get_footer(); ?>
- The topic ‘Syntax error… PLEASE HELP’ is closed to new replies.