Hey there, hope you can help, Im trying to nest some PHP within an IF statement, and Im using WP:
------------------------------------------------------
<div class="homebox">
<?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<?php
$valid = yes;
?>
<?php
if ( $valid == yes ) {
<?php get_the_image( array( 'custom_key' => array( 'Thumbnail', 'thumbnail' ), 'default_size' => 'thumbnail' ) ); ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(60, ""); ?>
} ?>
<div style="border-bottom:1px dotted #C0C0C0; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
</div>
------------------------------------------------------
The current error Im getting is
"Parse error: syntax error, unexpected '<' " and this is refering to the line that starts: <?php get_the_image
Any ideas? Im driving myself nuts with this!
Many Thnaks