Title: Syntax error help!
Last modified: August 20, 2016

---

# Syntax error help!

 *  [caseydennison](https://wordpress.org/support/users/caseydennison/)
 * (@caseydennison)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-help-3/)
 * Hi, I’m new around here so I’m not to sure if this is where I am suppose to post
   for help, but here I go.
 * I’m getting the “**Parse error:** syntax error, unexpected $end in **C:\xampp\
   htdocs\wordpress\wp-content\themes\Typo Theme\sidebar.php** on line **76**“
 * I read that this is due to I believe an unclosed bracket or something. Not sure.
 * I’ve been going through my code and have not found anything, but then again I
   still new at this. Hoping someone more experience could point out what the problem
   is and I can learn. Thanks!
 * Here is my code:
 *     ```
       <aside id="sidebar">
   
       		<section id="about">
   
       				<h3>About me</h3>
   
       				<p><?php get_option('omr_about_excerpt'); ?> <a href="<?php get_option(omr_about_link); ?>" class="more">Find out more &raquo;</a></p>
   
       		</section>
   
       		<section id="categories">
   
       				<h3>Categories</h3>
   
       				<ul>
       					<?php wp_list_categories('show_count=0&title_li=&hide_empty=0&exclude=1'); ?>
       				</ul>
   
       		</section>
   
       		<section id="social">
   
       				<h3>Social</h3>
   
       				<ul>
   
       					<?php if ( !get_option( 'omr_social-one') ) { ?>
   
       						<?php } else { ?>
   
       					<li><a href="<?php echo get_option('omr_social-one_url'); ?>"><?php echo get_option('omr_social-one'); ?></a></li>
   
       					<?php if ( !get_option('omr_social-six' ) ) { ?>
   
       						<?php } else { ?>
   
       						<li><a href="<?php get_option('omr_social-six_url'); ?>"><?php echo get_option('omr_social-six'); ?></a></li>
   
       					<?php } ?>
   
       				</ul>
   
       		</section>
   
       		<section id="latest">
   
       			<h3>Latest Posts</h3>
       			<ul>
       				<?php query_posts('showposts=6');
       					if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
       					<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
   
       					<?php endwhile; else: ?>
   
       						<li>No posts found</li>
   
       					<?php endif; ?>
   
       				<?php wp_reset_query(); ?>
       			</ul>
   
       		</section>
   
       		<section id="search">
   
       				<h3>Search</h3>
   
       				<form method="get" action="<?php bloginfo('url'); ?>/">
       						<fieldset>
       								<input type="text" id="searchbar" placeholder="I'm looking for&hellip;" />
       						</fieldset>
       				</form>
       		</section>
   
       </aside>
       ```
   

Viewing 1 replies (of 1 total)

 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-help-3/#post-2889840)
 * For sections of code that long, you really should paste them at pastebin.com 
   and then post a link to them here.
 * Pastebin will automatically number every line of your code, so we that don’t 
   have to count 76 lines of your code.
 * [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
 * > I read that this is due to I believe an unclosed bracket or something. Not 
   > sure.
 * Feel free to Google those error codes. The answer you are looking for is usually
   in one of the first ten results. For example, when I googled “Parse error: syntax
   error, unexpected $end”, I get these results:
 * [http://www.google.com/search?q=Parse+error%3A+syntax+error%2C+unexpected+%24end&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=rcs](http://www.google.com/search?q=Parse+error%3A+syntax+error%2C+unexpected+%24end&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=rcs)
 * Yes, you are missing a closing `?>` somewhere. I would suggest that you use a
   text editor like Notepad++, which highlights code in a way that makes it really
   easy to find these errors.

Viewing 1 replies (of 1 total)

The topic ‘Syntax error help!’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [kjodle](https://wordpress.org/support/users/kjodle/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-help-3/#post-2889840)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
