• Hi there, I’m trying to add a featured post area to my blog, and I did the following code:

    <?php $my_query = new WP_Query('category_name=Floreria&showposts=1');
     while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
      <div id="feature">
        <h2 class="post-title">
        	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
        </h2>
        	<?php the_excerpt(); ?>
        	<?php edit_post_link(__('Editar'), ", ' | '); ?>
      </div>
    <?php endwhile; ?>

    But I can’t figure why I’m getting this error:

    Parse error: syntax error, unexpected $end in ******/floreria.php on line 10

    If someone could help me figure it out.

    Thanks

  • The topic ‘Error: unexpected $end’ is closed to new replies.