I am working with cozmoslabs.com Feature Posts function for Thematic...
I do not know how to call for the post's image so that the feature "box" displays the attached image in the post. Thanks for any help in advance...here is the code:
function featured_posts(){
$my_query = new WP_Query('catagory=news&showposts=2');
echo '<ul id="featured-posts">';
$feat_class = array();
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;
$feat_class = array();
// Category for the post queried
foreach ( (array) get_the_category() as $cat )
$feat_class[] = 'category-' . $cat->slug;
$feat_class = join(" ", $feat_class);
?>
<li id="featured-<?php the_ID(); ?>" class="<?php echo $feat_class; ?>">
<?php
$posttitle = '<h4><a href="';
$posttitle .= get_permalink();
$posttitle .= '" title="';
$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
$posttitle .= '" rel="bookmark">';
$posttitle .= get_the_title();
$posttitle .= "</h4>\n";
echo $posttitle;
the_excerpt();
?>
<!-- .post -->
<?php
endwhile;
echo '';
}
add_action('thematic_belowheader','featured_posts');
?>