With the help of Helga from this post (http://forums.themeshaper.com/topic/adding-function-to-home-page-only-headache) I was able to create a featured-post div on my front page. Unfortunately, the way I used the function seems to be resulting in having everything below the featured-post div in my html to carry the link to the featured post (for example, try clicking on my footer). Not too familiar with php yet, so I'm having a bit of trouble finding the error. Here is my the related function in my functions.php, followed by my home-page-template, which also might be a cause for the error. Probably a simple fix. Thanks ... Love this forum ...
//==================== START Add featured posts on home page ====================
function featured_posts(){
if (is_front_page()) {
$my_query = new WP_Query('tag=featured&showposts=1');
echo '<div id="featured-posts">';
$feat_class = array();
while ($my_query->have_posts()) : $my_query->the_post();
$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);
?>
<div id="featured-<?php the_ID(); ?>" class="<?php echo $feat_class; ?>">
<?php
$posttitle = '<h4>featured... <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;
//get_the_image();
the_excerpt();
?>
</div><!-- .post -->
<?php
endwhile;
echo '</div>';
}
}
add_action('thematic_abovecontainer','featured_posts');
//==================== END Add featured posts on home page ====================
HERE IS MY HOME PAGE TEMPLATE
<?php
/*
Template Name: Home
*/
?>
<?php
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
</div><!-- #container -->
<?php
// calling footer.php
get_footer();
?>