WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] parse error...help please! (4 posts)

  1. oncidium
    Member
    Posted 9 years ago #

    Hi,
    I have been unable to get my comments section to work. When the link is clicked on the main blog page, I get the error: Parse error: parse error, unexpected ';' in /home/content/c/h/e/cherylkemp/html/blog/wp-content/themes/Blix/single.php on line 25

    I am not that great at this stuff, but I looked at the single.php file and I can't figure out what is wrong. Help please :) Here is the code:

    <?php get_header(); ?>

    <!-- content ................................. -->
    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <?php /* This is the navigation for previous/next post. It's disabled by default. ?>
    <p id="entrynavigation">
    <?php previous_post('<span class="previous">%</span>','','yes') ?>
    <?php next_post('<span class="next">%</span>','','yes') ?>

    <?php */ ?>

    <div class="entry single">

    <h2>"><?php the_title(); ?></h2>

    <p class="info">
    <?php if ($post->comment_status == "open") ?>

    <em class="date><?php the_time('F jS, Y') ?><!-- at <?php the_time('g:ia') ??>

    <!--<em class="author"><?php the_author(); ?>-->
    <?php edit_post_link('Edit','<span class="editlink">','</span>'); ?>

    <?php the_content();?>

    <p id="filedunder">Entry Filed under: <?php the_category(','); ?>

    </div>

    <?php endwhile; ?>

    <?php else : ?>

    <h2>Not Found</h2>
    "Sorry, but you are looking for something that isn't here.

    <?php endif; ?>

    <?php comments_template(); ?>

    </div> <!-- /content -->

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  2. oncidium
    Member
    Posted 9 years ago #

    Figured it out...finally :)

  3. citizenkeith
    Member
    Posted 8 years ago #

    Care to share? :)

  4. jbestell
    Member
    Posted 8 years ago #


    <em class="date><?php the_time('F jS, Y') ?><!-- at <?php the_time('g:ia') ??>

    the ??> is problematic. ;)

    also might want to fix

    <em class="date>

    cheers,
    jbestell

Topic Closed

This topic has been closed to new replies.

About this Topic