• Hello WordPress Support

    I have a blog at http://www.theaudiobookstore.co.uk

    Whenever you try to search anything you get the following error:

    Parse error: syntax error, unexpected T_STRING in /home/theaudio/public_html/wp-content/themes/grayed-10/search.php on line 23

    The PHP code is

    <?php get_header(); ?>
    
    <div id="content">
    
    <?php include(TEMPLATEPATH."/r_sidebar.php");?>
    
    <div id="contentmiddle">
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="datetime"><?php the_time('M') ?><span><?php the_time('jS') ?></span></div><h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    	<p>Posted on <?php the_time(); ?> | Filed Under <?php the_category(', ') ?></p>
    	<?php the_excerpt(__('Read more'));?><div style="clear:both;"></div>
    
    	<?php
    	include("postinfo.php");
    	?>
    
    	<!--
    	<?php trackback_rdf(); ?>
    	-->
    
    	<?php endwhile; else: ?>
    
    	<p><?php _e('Sorry, but you are looking for something that isn't here. You can try searching for other topics again.'); ?></p>
            <?php endif; ?>
    	<?php posts_nav_link(' — ', __('&laquo; go back'), __('keep looking &raquo;')); ?><br />
    	</div>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>

    Any help with this would be greatly appreciated

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try the code I posted below, that should fix it, I think you had a character that was misplaced in the code.

    <?php get_header(); ?>
    
    <div id="content">
    
    <?php include(TEMPLATEPATH."/r_sidebar.php");?>
    
    <div id="contentmiddle">
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="datetime"><?php the_time('M') ?><span><?php the_time('jS') ?></span></div><h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    	<p>Posted on <?php the_time(); ?> | Filed Under <?php the_category(', ') ?></p>
    	<?php the_excerpt(__('Read more'));?><div style="clear:both;"></div>
    
    	<?php
    	include("postinfo.php");
    	?>
    
    	<!--
    	<?php trackback_rdf(); ?>
    	-->
    
    	<?php endwhile; else: ?>
    
    	<p><?php _e('Sorry, but you are looking for something that is not here. You can try searching for other topics again.'); ?></p>
            <?php endif; ?>
    	<?php posts_nav_link(' — ', __('&laquo; go back'), __('keep looking &raquo;')); ?><br />
    	</div>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>

    Thread Starter smiley1

    (@smiley1)

    Jlosh,

    Your a star thanks for that. isn’t ( took me a while to spot the change unless there were others?)

    Thanks again

    Regards

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.