• 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)
Viewing 1 replies (of 1 total)

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