• I have the following error for my index.php file:
    Parse error: parse error, unexpected $ in /home/shanest/public_html/wp-content/themes/shanest/index.php on line 20
    Here’s the index.php file:
    <?php include “header.php”; ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”headline”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></div>
    <div class=”subheadline”>Posted to <?php the_category(‘, ‘) ?> at <?php the_time(‘g:i A’) ?> on <? the_date(); ?></div>

    <div class=”story”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>
    <div class=”storyfoot”>
    Discuss in Forum | “>Trackback
    </div>
    <?php endwhile; ?>
    <?php include “searchform.php”; ?>
    <?php include “footer.php”; ?>
    Any idea why it’s got a parse error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shanest

    (@shanest)

    Updated index.php returns identical parse error except on line 24. Also, whenever I try and just delete the bottom include, the error shifts up to the line above.
    <?php include “header.php”; ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”headline”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></div>
    <div class=”subheadline”>Posted to <?php the_category(‘, ‘) ?> at <?php the_time(‘g:i A’) ?> on <? the_date(); ?></div>

    <div class=”story”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>
    <div class=”storyfoot”>
    <?
    $forum = mysql_query(“SELECT * FROM wp_categories WHEN ID=the_category_ID();”);
    $forum_id = mysql_fetch_array($forum);
    ?>
    Discuss in “><? the_category_unicode(); ?> Forum
    </div>
    <?php endwhile; ?>
    <?php include “searchform.php”; ?>
    <?php include “footer.php”; ?>

    I would guess that the error is not in index.php, but is actually in one of the other files that you are including.

    Thread Starter shanest

    (@shanest)

    It was just a : that shouldn’t have been there, sorry for the trouble.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help installing my new theme – parse error’ is closed to new replies.