I pretty much copied this code word for word from a tutorial. I'm not sure what is wrong. I searched the error message and it seems like something isn't closed correctly? But like I said I tripled check and this is how it was written in the tutorial?
What could Parse error: syntax error, unexpected $end in __ in line 44 mean?? Line 44 is the last line
<?php /* Template Name: template */ ?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="sidebar1" class="scolumn fix" style="width:326px;">
<div class="scolumn-pad">
<?php pagelines_template_area('pagelines_sidebar1', 'sidebar1'); ?>
</div>
</div>
<div style="width:560px; float:left; margin-top:50px;" >
<?php query_posts('category_name=template-category');?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div style="float:inherit; padding-bottom:10px;">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
<span>
<a href="<?php the_permalink() ?>" target="_blank">
<?php the_post_thumbnail('thumbnail'); ?>
</a>
</span>
<!-- Content -->
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
if
->if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
BTW this tutorial is a nonsense.while ( have_posts() )
would be sufficient,if
is redundant there. – doc Feb 22 '14 at 9:57