WordPress.org

Ready to get started?Download WordPress

Forums

Can't figure out syntax error (2 posts)

  1. RoanokeVaGuy
    Member
    Posted 1 year ago #

    Hello,

    I keep getting an error message that there is a syntax error on line 30. Can someone help me with solving this?

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    	<div id="content">
    		<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    <!-- Post -->
    <!-- Post Header -->
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="post-header">
                	<div class="header-top">
                      <h2><a>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <!-- this is where the code would go for the author of the blogs -->
                	</div>
                	<div class="header-bottom">
                        <div class="comments">· <?php comments_popup_link('Leave a comment', '1 Comment', '% Comments'); ?></div>
                        <div class="date">Posted: <span><strong><?php the_time('l') ?></strong>, <?php the_time('m') ?>·<?php the_time('d') ?>·<?php the_time('Y') ?></span> </div>
               		</div>
    			</div>
    <!-- Post Content-->
    			<div class="post-content clear">
    			<?php the_content('read more...'); ?>
            		<?php edit_post_link('Edit This','<p>','</p>'); ?>
    			</div>
    <!-- Post Footer-->
    			<div class="post-footer">
    	<p class="tags"><strong>Tags:</strong> <?php the_tags('', ', ', ''); ?></p>
    	<p class="categories"><strong>Section:</strong> <?php the_categories('', ', ', ''); ?></p>
    			</div>
    		</div>
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

    The site is: http://thehealthsnap.com/wordpress/ and the error appears under the blog section. I would greatly appreciate any help here.

    Thanks,

    Rob

  2. The error may actually be in footer.php, becuase that's called on line 30; check that file, or ask the theme developer.

Topic Closed

This topic has been closed to new replies.

About this Topic