Title: Recent Posts widget delivers Parse Error for single.php
Last modified: August 21, 2016

---

# Recent Posts widget delivers Parse Error for single.php

 *  Resolved [JeanaS](https://wordpress.org/support/users/jeanas/)
 * (@jeanas)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-widget-delivers-parse-error-for-singlephp/)
 * When clicking on a “recent post” in the sidebar of my Twenty Ten child template(
   www.intouchcalls.com/blog), I get the following error:
 * Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES
   or T_CURLY_OPEN in /home/content/76/10560376/html/blog/wp-content/themes/twentyten/
   single.php on line 28
 * The single.php code looks like this:
 *     ```
       <?php
       /**
        * The Template for displaying all single posts.
        *
        * @package WordPress
        * @subpackage Twenty_Ten
        * @since Twenty Ten 1.0
        */
   
       get_header(); ?>
   
       		<div id="container">
       			<div id="content" role="main">
   
       			<?php
       			/* Run the loop to output the post.
       			 * If you want to overload this in a child theme then include a file
       			 * called loop-single.php and that will be used instead.
       			 */
       			get_template_part( 'loop', 'single' );
       			?>
   
       			</div><!-- #content -->
   
       		</div><!-- #container -->
       <?php comments_template(",true); ?>
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 * _[Moderator Note: Please post code & markup between backticks (not single quotes)
   or use the code button. Your posted code may now have been permanently damaged
   by the forum’s parser.]_
 * I’ve already deactivated all plugins, reinstalled a fresh WordPress version and
   tried a different theme. All have the same issue.
 * What do you think?
 * Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [kaniamea](https://wordpress.org/support/users/kaniamea/)
 * (@kaniamea)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-widget-delivers-parse-error-for-singlephp/#post-4507914)
 * Hi Jeana,
    did you make any modifications to single.php before the error occurred?
   I would suggest to replace the code in your single.php with the standard code
   that comes with Twenty Ten theme:
 *     ```
       <?php
       /**
        * The Template for displaying all single posts.
        *
        * @package WordPress
        * @subpackage Twenty_Ten
        * @since Twenty Ten 1.0
        */
   
       get_header(); ?>
   
       		<div id="container">
       			<div id="content" role="main">
   
       			<?php
       			/* Run the loop to output the post.
       			 * If you want to overload this in a child theme then include a file
       			 * called loop-single.php and that will be used instead.
       			 */
       			get_template_part( 'loop', 'single' );
       			?>
   
       			</div><!-- #content -->
       		</div><!-- #container -->
   
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 *  Thread Starter [JeanaS](https://wordpress.org/support/users/jeanas/)
 * (@jeanas)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-widget-delivers-parse-error-for-singlephp/#post-4507958)
 * Thanks! It works. Appreciate your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Recent Posts widget delivers Parse Error for single.php’ is closed to
new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyten/4.6/screenshot.png)
 * Twenty Ten
 * [Support Threads](https://wordpress.org/support/theme/twentyten/)
 * [Active Topics](https://wordpress.org/support/theme/twentyten/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyten/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyten/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 2 replies
 * 2 participants
 * Last reply from: [JeanaS](https://wordpress.org/support/users/jeanas/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/recent-posts-widget-delivers-parse-error-for-singlephp/#post-4507958)
 * Status: resolved