Código HTML:
<a href="<?php the_permalink() ?>" rel="bookmark"><div align="center"><img style="margin:0px 10px 10px 0px;" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Imagen" width="250" height="115" /></div></a>
Código PHP:
<? $url = $_SERVER["REQUEST_URI"];
echo $url;
if ($url == "/?cat=5") {
$recent = new WP_Query("cat=5&showposts="); while($recent->have_posts()) : $recent->the_post();
echo "<a href='the_permalink()' rel='bookmark'>";
echo "<div align='center'>";
echo "<img style='margin:0px 10px 10px 0px;' src='get_post_meta($post->ID, 'Thumbnail', true)' alt='get_post_meta($post->ID, 'Theme Name', true) Imagen' width='250' height='115' />";
echo "</div></a>";
endwhile;
}
else {
echo "ok" ;
}
?>