Dian
I got an error while I was using the code with Kubrik theme. Here is ther error
Fatal error: Call to undefined function has_post_thumbnail() in C:\xampp\htdocs\blog\wp-content\themes\basictheme\index.php on line 12
and this is the main page PHP code
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div class="featured-loop">
<?php $recent = new WP_Query("cat=1&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<div class="feat-post clear">
<div class="feat-thumb"><?php if ( has_post_thumbnail() ) the_post_thumbnail('feat-loop'); else { ?><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/default-thumbs/feat-thumb.jpg" alt="<?php the_title(); ?>" /></a> <?php } ?></div>
<div class="feat-post-content">
<h2 class="feat-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<span class="feat-post-meta">
<span class="meta-date"><?php the_time('d, M'); ?>.</span>
<span class="meta-comments"><?php comments_number('', '1', '%'); ?></span>
</span>
<?php the_excerpt(); ?>
<div class="read-more"><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/read-more.gif" alt="read-more" border="0" /></a></div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Pleaes tell me what is the problem.