HELP – Error message after changing some code!!
-
Hi,
I recently tried to make some changes to the header.php code in order to display my images better on my blog. I followed some detailed instructions and once updated the file I now get the following message at my homepage:
Parse error: syntax error, unexpected ‘}’ in /home/scent09/public_html/addicted2fragrances.com/wp-content/themes/themasterplan_tma_v1.4/tma/home.php on line 65
I had done a backup prior to making changes but my attempts to restore it are not working.
My code in the header.php file is as follows:
<?php get_header(); ?>
<div id=”topbanner” class=”column span-14″> <!– start top banner –>
<div class=”pagetitle”>
// home
</div>
</div> <!– end top banner –><div id=”home_content” class=”column span-14″> <!– start home_content –>
<div id=”home_left” class=”column span-7 first”> <!– start home_left –>
<?php $catid = $wpdb->get_var(“SELECT term_ID FROM $wpdb->terms WHERE name=’Asides'”); ?>
<?php $catid2 = $wpdb->get_var(“SELECT term_ID FROM $wpdb->terms WHERE name=’Featured'”); ?>
<?php $the_query = new WP_Query(‘cat=-‘ .$catid. ‘&showposts=3&orderby=post_date&order=desc’);
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div id=”latest_post”> <!– start latest_post –>
<h3 class=”mast”>Latest Post</h3><div id=”latest_post_image”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_thumb(‘link=p’); ?>
</div><h3 class=”latest_post_title” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
<p><?php echo strip_tags(get_the_excerpt(), ‘‘); ?></p>
<div class=”latest_post_meta”>
<span class=”latest_read_on”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Continue Reading</span>
<span class=”latest_comments”><?php comments_popup_link(‘Post a comment’, ‘One comment’, ‘% comments’, ”, ‘Comments off’); ?></span>
<?php $cat = get_the_category(); $cat = $cat[0]; ?>
<span class=”latest_category”>cat_ID);?>”><?php echo $cat->cat_name; ?></span>
</div>
</div> <!– end latest_post –><?php endwhile; ?>
<div id=”home_featured”> <!– start home_featured –>
<h3 class=”home_featured”>Featured Post</h3><?php $the_query = new WP_Query(‘category_name=featured&showposts=2’);
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div class=”feat_content”>
<div class=”feat_thumb”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/featured/<?php echo get_post_meta($post->ID, “featured_home_img”, $single = true); ?>” alt=”<?php the_title(); ?>” /></div>
<?php } else { ?>
<div class=”feat_thumb”>
” rel=”bookmark” title=”Permanent Link to <?php
the_title(); ?>”>
<div class=”feat_thumb”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_thumb(‘SUBFOLDER=featured&WIDTH=64&HEIGHT=64&link=p’); ?>
</div><div class=”feat_title”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></div>
<div class=”feat_exc”>
<p><?php echo strip_tags(get_the_excerpt(), ‘‘); ?></p>
</div></div>
<?php endwhile; ?>
</div> <!– end home_featured –>
<div id=”home_asides”> <!– start asides –>
<h3 class=”mast”>Asides</h3>
<ul class=”arrow”>
<?php $the_query = new WP_Query(‘category_name=asides&showposts=3&orderby=post_date&order=desc’);while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; ?>
- <?php echo strip_tags(get_the_content(), ‘‘); ?> ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>#
<?php endwhile; ?>
</div> <!– end asides –>
</div> <!– end home_left –>
<div id=”home_right” class=”column span-7 last”>
<div id=”home_about”>
<h3 class=”mast3″>Welcome to <?php bloginfo(‘name’); ?></h3>
<?php $the_query = new WP_Query(‘pagename=description’);
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
<div class=”column span-4 first”>
<h3 class=”mast”>Recent Posts</h3>
<?php $the_query = new WP_Query(‘cat=-‘ .$catid. ‘&showposts=3&offset=3&orderby=post_date&order=desc’);
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div class=”home_recent_post”>
<div class=”home_recent_thumb”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/thumbs/<?php echo get_post_meta($post->ID, “thumb_home_img”, $single = true); ?>” alt=”<?php the_title(); ?>” />
</div>
<?php } else { ?>
<div class=”home_recent_thumb”>
” rel=”bookmark” title=”Permanent Link to <?php
the_title(); ?>”>
<?php the_thumb(‘SUBFOLDER=small&WIDTH=50&HEIGHT=50&link=p’); ?>
</div><div class=”home_recent_title” id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?>
</div><div class=”home_recent_date”>
<?php the_time(‘F j, Y’); ?>
</div><div class=”home_recent_auth”>
By <?php the_author(); ?>
</div></div>
<?php endwhile; ?>
<?php include(‘ad_home.php’); ?>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘MiddleColumn’) ) : ?><div id=”side_tag_cloud”>
<h3 class=”mast”>Browse</h3>
<?php wp_tag_cloud(”); ?>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div> <!– end home_content –>
<?php get_footer(); ?>
If anyone has any ideas what is wrong, please can you help me. I can’t believe i’ve done this and I can’t believe my backup isn’t restoring.
Thanks in advance,
Ben
The topic ‘HELP – Error message after changing some code!!’ is closed to new replies.