I want to use this code in wordpress theme.
<ul>
<?php
$args = array( 'numberposts' => '5' );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li>
<span class="l-e-right"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php echo the_post_thumbnail('large-thumb'); ?></a></span>
<h4><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
<time datetime="<?php the_date('j F Y'); ?>"><?php the_date('j F Y'); ?></time>
<div class="clearfix"></div>
</li>'
}
wp_reset_query();
?>
</ul>
but there is something wrong!
Parse error: syntax error, unexpected 'large' (T_STRING), expecting ',' or ';' in
How can I fix this code?
Thanks...