unexpected T_STRING
-
I keep getting this error, no matter how my index is saved. It always says this. Always line 45. It doesn’t seem to matter what is actually on that line….
Parse error: syntax error, unexpected T_STRING in /f5/zeroplot/public/wp-content/themes/zeroplot/index.php on line 45
The address is http://zeroplot.nfshost.com/
and any help would be greatly appreciated. I know html, css, and even a little C++, but I can’t seem to ever get php working… 🙁snippet: (the index.php referenced above… I know that the main section of the page is kinda screwed up, but I was following a wordpress tutorial and I think it still works – I just need to see what it looks like so I can ‘tweak’ it)
<?php get_header(); ?> <div class="updates_border" style="margin-top:80px;"> <div class="updates"> <div class="headtype"> Header! </div> <div class="datetype"> 20/10/10 </div> Hi this is a test this is a test is a test a test test est st t Hi this is a test this is a test is a test a test test est st t Hi this is a test this is a test is a test a test test est st t Hi this is a test this is a test is a test a test test est st t </div> </div> <?php while(have_posts()) : the_post(); ?> <div class="post"> <div class="title"> <h2><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h2> </div> <div class="info"> <ul> <li><?php the_time('F dS, Y') ?></li> <li><?php the_category(', '); ?></li> <li><em><?php the_author(); ?></em></li> </ul> </div> <div class="text"> <?php the_content("); ?> <span class="more"><em><a href="<?php the_permalink(); ?>">Continue reading</a></em></span> </div> </div> <div class="divider"></div> <?php endwhile; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
I think it might be a problem with the sidebar; it was originally on line 45:
<ul> <?php wp_list_cats('sort_column=menu_order&depth=1&title_li=&show_count=1'); ?> </ul>
I actually don’t want my main page to have a sidebar, but i’m not sure how that’s exactly done without seeing what this produces so I can, again, ‘tweak’ it.
Again, the php bits were from a wordpress tutorial here.
- The topic ‘unexpected T_STRING’ is closed to new replies.