Forums

[resolved] Line 18 Parse Error-Unable to find solution (1 post)

  1. DevonH0818
    Member
    Posted 2 years ago #

    Hey Everyone,
    I am getting the infamous "Parse error: syntax error, unexpected T_STRING in C:\wamp\www\iwd\wp-content\themes\iwd\index.php on line 18"

    Some say this is because you've been hacked (which can't be the case, since I just coded this on my wamp), some say it's because of a missing semi-colon, but I can't find one. I've seen a few other things, but none of them are the case; so I'm hoping you all can help with a solution :)

    Here is the code up to line 18

    <?php get_header(); ?>
       <div id="main">
    
       <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
    
    	  <div <?php post_class(); ?>>
    	     <div class="date">
    		    <p><?php the_time('d'); ?> <span><?php the_time('M'); ?></span></p>
    		 </div>
    
          <div class="post-content">
    	       <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    		   <?php the_content(' '); ?>
    
    		   <ul class="post-meta">
    		    <li>Posted in <?php the_category(', '); ?></li>
    			<li><a href="<?php the permalink(); ?>#comments"><?php comments_number('No Comments','1 Comment','% Comments'); ?></a></li>

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags